Minor - Format code

pull/2588/merge
Julio Montoya 7 years ago
parent c2d40c5df3
commit ae91b48ec5
  1. 4
      main/lp/learnpath.class.php
  2. 1
      src/Chamilo/CourseBundle/Component/CourseCopy/CourseRecycler.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.

@ -90,7 +90,6 @@ class CourseRecycler
if ($backupType === 'full_backup') {
\CourseManager::deleteCoursePicture($this->course_info['code']);
}
}
/**

Loading…
Cancel
Save