[svn r13256] Added exit() command after sending file

skala
Yannick Warnier 17 years ago
parent 16f3eec768
commit d25d92229c
  1. 3
      main/exercice/admin.php
  2. 1
      main/exercice/exercice.php

@ -60,7 +60,7 @@
*
* @package dokeos.exercise
* @author Olivier Brouckaert
* @version $Id: admin.php 13186 2007-09-22 05:33:18Z yannoo $
* @version $Id: admin.php 13256 2007-09-26 05:21:10Z yannoo $
*/
@ -175,6 +175,7 @@ if($_GET['action'] == 'exportqti2' && !empty($_GET['questionId']))
require_once('export/qti2/qti2_export.php');
$export = export_question((int)$_GET['questionId'],true);
DocumentManager::string_send_for_download($export,true,'qti2export_q'.$_GET['questionId'].'.xml');
exit(); //otherwise following clicks may become buggy
}
// intializes the Exercise object

@ -279,6 +279,7 @@ if($is_allowedToEdit && !empty($choice) && $choice == 'exportqti2')
require_once('export/qti2/qti2_export.php');
$export = export_exercise($exerciseId,true);
DocumentManager::string_send_for_download($export,true,'qti2export_'.$exerciseId.'.xml');
exit(); //otherwise following clicks may become buggy
}
if ($origin != 'learnpath')

Loading…
Cancel
Save