Browse Source

Add message when file not found in download_scorm.php

Julio 7 years ago
parent
commit
833cf3b288
1 changed files with 3 additions and 2 deletions
  1. 3 2
      main/document/download_scorm.php

+ 3 - 2
main/document/download_scorm.php

@@ -58,7 +58,8 @@ if (Security::check_abs_path($sys_course_path.$doc_url, $sys_course_path.'/')) {
     $fixLinks = api_get_configuration_value('lp_replace_http_to_https');
     $result = DocumentManager::file_send_for_download($full_file_name, false, '', $fixLinks);
     if ($result === false) {
-        api_not_allowed(true, '', 404);
+        api_not_allowed(true, get_lang('FileNotFound'), 404);
     }
+} else {
+    api_not_allowed(true, get_lang('FileNotFound'), 404);
 }
-exit;