From 50907061e9fe50566965f465fa466b919bc3fff5 Mon Sep 17 00:00:00 2001 From: Nicolas Ducoulombier Date: Mon, 14 Dec 2015 11:17:26 +0100 Subject: [PATCH] Adapting Fix on swf upload to correct problem with swf that do no open in student view in session -Refs BT#10599 --- main/document/download.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main/document/download.php b/main/document/download.php index 927fca03ee..d322f45bb7 100755 --- a/main/document/download.php +++ b/main/document/download.php @@ -72,7 +72,10 @@ if (isset($path_info['extension']) && $path_info['extension'] == 'swf') { $fixed_url = str_replace('-', '_', $doc_url); $doc_id = DocumentManager::get_document_id(api_get_course_info(), $doc_url); if (!$doc_id) { - $fix_file_name = true; + $doc_id = DocumentManager::get_document_id(api_get_course_info(), $doc_url, '0'); + if (!$doc_id) { + $fix_file_name = true; + } } }