Browse Source

Backward compatibility with old dokeos way of dealing with files by Noel

Julio Montoya 15 years ago
parent
commit
e19673fdec
1 changed files with 2 additions and 1 deletions
  1. 2 1
      main/document/download.php

+ 2 - 1
main/document/download.php

@@ -110,7 +110,8 @@ if (substr($refer_script,0,15) == "/fillsurvey.php") {
 }
 
 $sys_course_path = api_get_path(SYS_COURSE_PATH);
-$full_file_name = $sys_course_path.$_course['path'].'/document'.$doc_url;
+//$full_file_name = $sys_course_path.$_course['path'].'/document'.$doc_url;
+$full_file_name = $sys_course_path.$_course['path'].'/document'.str_replace('+',' ',$doc_url);
 
 // check visibility of document and paths
 $is_allowed_to_edit = api_is_allowed_to_edit();