Make course copy error messaging even clearer

remotes/angel/1.11.x
Yannick Warnier 8 years ago
parent a763b8039b
commit a1320fb4cd
  1. 4
      src/Chamilo/CourseBundle/Component/CourseCopy/CourseRestorer.php

@ -922,10 +922,10 @@ class CourseRestorer
}
// Issue with destination directories?
if (!is_dir(dirname($path.$document->path))) {
error_log('Course copy generated an ignorable error while trying to copy to '.dirname($path.$document->path).': destination directory not found');
error_log('Course copy generated an ignorable error while trying to copy '.$this->course->backup_path.'/'.$document->path.' to '.dirname($path.$document->path).': destination directory not found');
}
if (!is_writeable(dirname($path.$document->path))) {
error_log('Course copy generated an ignorable error while trying to copy to '.dirname($path.$document->path).': destination directory not writable');
error_log('Course copy generated an ignorable error while trying to copy '.$this->course->backup_path.'/'.$document->path.' to '.dirname($path.$document->path).': destination directory not writable');
}
}
} // end file doesn't exist

Loading…
Cancel
Save