From d25d92229c9cda6888ca1690d87bcc6adf093740 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Wed, 26 Sep 2007 07:21:10 +0200 Subject: [PATCH] [svn r13256] Added exit() command after sending file --- main/exercice/admin.php | 3 ++- main/exercice/exercice.php | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/main/exercice/admin.php b/main/exercice/admin.php index 788ac49b5d..84a403bfa1 100644 --- a/main/exercice/admin.php +++ b/main/exercice/admin.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 diff --git a/main/exercice/exercice.php b/main/exercice/exercice.php index cda6fbed70..fd366bb217 100644 --- a/main/exercice/exercice.php +++ b/main/exercice/exercice.php @@ -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')