[svn r13341] Use zip filename depending on path name

skala
Yannick Warnier 18 years ago
parent f73e639968
commit 12bd3833d4
  1. 4
      main/newscorm/learnpath.class.php

@ -7876,7 +7876,9 @@ EOD;
if($res === false){error_log('Could not delete temp file '.$file.' '.__FILE__.' '.__LINE__,0);} if($res === false){error_log('Could not delete temp file '.$file.' '.__FILE__.' '.__LINE__,0);}
} }
//Send file to client //Send file to client
$name = 'scorm_export_'.$this->lp_id.'.zip'; //$name = 'scorm_export_'.$this->lp_id.'.zip';
require_once(api_get_path(LIBRARY_PATH).'fileUpload.lib.php');
$name = replace_dangerous_char($this->get_name()).'.zip';
DocumentManager::file_send_for_download($temp_zip_file,true,$name); DocumentManager::file_send_for_download($temp_zip_file,true,$name);
} }
/** /**

Loading…
Cancel
Save