|
@@ -522,6 +522,7 @@ class html5 implements ilm_handle {
|
|
$application_descriptor .= ' <width>' . $iassign_ilm->width . '</width>' . "\n";
|
|
$application_descriptor .= ' <width>' . $iassign_ilm->width . '</width>' . "\n";
|
|
$application_descriptor .= ' <height>' . $iassign_ilm->height . '</height>' . "\n";
|
|
$application_descriptor .= ' <height>' . $iassign_ilm->height . '</height>' . "\n";
|
|
$application_descriptor .= ' <evaluate>' . $iassign_ilm->evaluate . '</evaluate>' . "\n";
|
|
$application_descriptor .= ' <evaluate>' . $iassign_ilm->evaluate . '</evaluate>' . "\n";
|
|
|
|
+ $application_descriptor .= ' <reevaluate>' . $iassign_ilm->reevaluate . '</reevaluate>' . "\n";
|
|
|
|
|
|
if ($iassign_ilm_configs) { //MOOC 2016
|
|
if ($iassign_ilm_configs) { //MOOC 2016
|
|
$application_descriptor .= ' <params>' . "\n";
|
|
$application_descriptor .= ' <params>' . "\n";
|
|
@@ -549,7 +550,7 @@ class html5 implements ilm_handle {
|
|
header("Content-Type: application/zip");
|
|
header("Content-Type: application/zip");
|
|
header("Content-Disposition: attachment; filename=\"" . basename($zip_filename) . "\";");
|
|
header("Content-Disposition: attachment; filename=\"" . basename($zip_filename) . "\";");
|
|
header("Content-Transfer-Encoding: binary");
|
|
header("Content-Transfer-Encoding: binary");
|
|
- header("Content-Length: " . (filesize($zip_filename) + 1000));
|
|
|
|
|
|
+ header("Content-Length: " . (filesize($zip_filename)));
|
|
set_time_limit(0);
|
|
set_time_limit(0);
|
|
readfile($zip_filename) || die("File not found.");
|
|
readfile($zip_filename) || die("File not found.");
|
|
unlink($zip_filename);
|
|
unlink($zip_filename);
|
|
@@ -793,6 +794,7 @@ class html5 implements ilm_handle {
|
|
$newentry->author = $USER->id;
|
|
$newentry->author = $USER->id;
|
|
$newentry->timecreated = time();
|
|
$newentry->timecreated = time();
|
|
$newentry->evaluate = (String) $application_xml->evaluate;
|
|
$newentry->evaluate = (String) $application_xml->evaluate;
|
|
|
|
+ $newentry->reevaluate = (String) $application_xml->reevaluate;
|
|
$newentry->parent = $iassign_ilm->id;
|
|
$newentry->parent = $iassign_ilm->id;
|
|
|
|
|
|
$newentry->id = $DB->insert_record("iassign_ilm", $newentry);
|
|
$newentry->id = $DB->insert_record("iassign_ilm", $newentry);
|
|
@@ -881,6 +883,7 @@ class html5 implements ilm_handle {
|
|
$newentry->author = $USER->id;
|
|
$newentry->author = $USER->id;
|
|
$newentry->timecreated = time();
|
|
$newentry->timecreated = time();
|
|
$newentry->evaluate = (String) $application_xml->evaluate;
|
|
$newentry->evaluate = (String) $application_xml->evaluate;
|
|
|
|
+ $newentry->reevaluate = (String) $application_xml->reevaluate;
|
|
$newentry->parent = $iassign_ilm->id;
|
|
$newentry->parent = $iassign_ilm->id;
|
|
|
|
|
|
//MOOC 2016 $newentry->id = $DB->insert_record("iassign_ilm", $newentry);
|
|
//MOOC 2016 $newentry->id = $DB->insert_record("iassign_ilm", $newentry);
|