diff --git a/public/main/course_info/download.php b/public/main/course_info/download.php index 3f3e2c39ce..be05b3b595 100644 --- a/public/main/course_info/download.php +++ b/public/main/course_info/download.php @@ -27,7 +27,7 @@ if (empty($extension) || !file_exists($archive_path.$archive_file)) { exit; } -$extension = strtolower($extension); +//$extension = strtolower($extension); $content_type = ''; if (in_array($extension, ['xml', 'csv']) && diff --git a/public/main/exercise/export/aiken/aiken_import.inc.php b/public/main/exercise/export/aiken/aiken_import.inc.php index d4a422aa6b..d5e3172338 100644 --- a/public/main/exercise/export/aiken/aiken_import.inc.php +++ b/public/main/exercise/export/aiken/aiken_import.inc.php @@ -64,7 +64,7 @@ function aiken_import_exercise($file) $file_found = false; $operation = false; - $result = aiken_parse_file($exercise_info, $file); + $result = aiken_parse_file($exercise_info, $file); if (true !== $result) { return $result; diff --git a/public/main/inc/lib/fileUpload.lib.php b/public/main/inc/lib/fileUpload.lib.php index 2486933742..a04873065d 100644 --- a/public/main/inc/lib/fileUpload.lib.php +++ b/public/main/inc/lib/fileUpload.lib.php @@ -1,7 +1,6 @@ get_id()); } - if ($type !== 'sco') { - if ($type == TOOL_QUIZ || $type == TOOL_HOTPOTATOES) { + if ('sco' !== $type) { + if (TOOL_QUIZ == $type || TOOL_HOTPOTATOES == $type) { $this->get_status( true, true @@ -308,6 +307,7 @@ class learnpathItem if ($debug) { error_log('End - learnpathItem:close'); } + return true; } @@ -3709,7 +3709,7 @@ class learnpathItem Database::update($item_view_table, $params, $where); } else { // For all other content types... - if ($this->type === 'quiz') { + if ('quiz' === $this->type) { $my_status = ' '; $total_time = ' '; if (!empty($_REQUEST['exeId'])) { @@ -4258,7 +4258,6 @@ class learnpathItem * * @param int $courseId The course ID from the learning path * @param int $sessionId Optional. The session ID from the learning path - * */ public function getForumThread($courseId, $sessionId = 0): ?CForumThread {