From 833cf3b288488020888b824b53fab0003a105328 Mon Sep 17 00:00:00 2001 From: Julio Date: Thu, 11 Jan 2018 12:25:29 +0100 Subject: [PATCH] Add message when file not found in download_scorm.php --- main/document/download_scorm.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main/document/download_scorm.php b/main/document/download_scorm.php index a6bbdb58684..11985e7fb93 100755 --- a/main/document/download_scorm.php +++ b/main/document/download_scorm.php @@ -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;