Skip to content

Commit

Permalink
Add message when file not found in download_scorm.php
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Jan 11, 2018
1 parent 2b4aec1 commit 833cf3b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main/document/download_scorm.php
Expand Up @@ -58,7 +58,8 @@
$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;

0 comments on commit 833cf3b

Please sign in to comment.