Merge pull request #951 from NicoDucou/BT10599b

Adapting Fix on swf upload to correct problem with swf that do no ope…
1.10.x
Yannick Warnier 9 years ago
commit cea3143da5
  1. 5
      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;
}
}
}

Loading…
Cancel
Save