Bugfix : take into account the quota of the course instead of 1G harcoded value in scorm upload

skala
Noel Dieschburg 15 years ago
parent 00ada90163
commit f44cacd1cb
  1. 5
      main/newscorm/scorm.class.php

@ -554,7 +554,8 @@ class scorm extends learnpath {
function import_package($zip_file_info,$current_dir = '')
{
if($this->debug>0){error_log('In scorm::import_package('.print_r($zip_file_info,true).',"'.$current_dir.'") method',0);}
$maxFilledSpace = 1000000000;
require_once(api_get_path(LIBRARY_PATH).'document.lib.php');
$maxFilledSpace = DocumentManager :: get_course_quota();
$zip_file_path = $zip_file_info['tmp_name'];
$zip_file_name = $zip_file_info['name'];
if($this->debug>1){error_log('New LP - import_package() - zip file path = '.$zip_file_path.', zip file name = '.$zip_file_name,0);}
@ -1025,4 +1026,4 @@ class scorm extends learnpath {
return false;
}
}
?>
?>

Loading…
Cancel
Save