diff --git a/main/lp/learnpath.class.php b/main/lp/learnpath.class.php index f08856b3ac..350c254542 100755 --- a/main/lp/learnpath.class.php +++ b/main/lp/learnpath.class.php @@ -10802,10 +10802,10 @@ class learnpath $destinationFile = substr($file_path, strlen($cur_path)); $filePathNoCoursePart = substr($file_path, strlen($cur_path)); if (false) { - //if (false !== strstr($file_path, $cur_path)) { + //if (false !== strstr($file_path, $cur_path)) { $relative_path = str_replace($cur_path, '', $file_path); $file_path = substr($file_path, strlen($cur_path)); - //var_dump($relative_path, $file_path); + //var_dump($relative_path, $file_path); } else { // This case is still a problem as it's difficult to calculate // a relative path easily might still generate wrong links. diff --git a/src/Chamilo/CourseBundle/Component/CourseCopy/CourseRecycler.php b/src/Chamilo/CourseBundle/Component/CourseCopy/CourseRecycler.php index 079ff76c03..c96992df2c 100644 --- a/src/Chamilo/CourseBundle/Component/CourseCopy/CourseRecycler.php +++ b/src/Chamilo/CourseBundle/Component/CourseCopy/CourseRecycler.php @@ -90,7 +90,6 @@ class CourseRecycler if ($backupType === 'full_backup') { \CourseManager::deleteCoursePicture($this->course_info['code']); } - } /**