From e02bd4a191b65aa740222d67abb43a8790efb495 Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 25 Mar 2004 14:55:04 +0000 Subject: [PATCH] After an error on import, come back to this page --- mod/quiz/import.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mod/quiz/import.php b/mod/quiz/import.php index 9219963cd8..02d6dc5df7 100644 --- a/mod/quiz/import.php +++ b/mod/quiz/import.php @@ -59,15 +59,18 @@ $format = new quiz_file_format(); if (! $format->importpreprocess($category)) { // Do anything before that we need to - error("Error occurred during pre-processing!"); + error("Error occurred during pre-processing!", + "$CFG->wwwroot/mod/quiz/import.php?category=$category->id"); } if (! $format->importprocess($newfile['tmp_name'])) { // Process the uploaded file - error("Error occurred during processing!"); + error("Error occurred during processing!", + "$CFG->wwwroot/mod/quiz/import.php?category=$category->id"); } if (! $format->importpostprocess()) { // In case anything needs to be done after - error("Error occurred during post-processing!"); + error("Error occurred during post-processing!", + "$CFG->wwwroot/mod/quiz/import.php?category=$category->id"); } echo "
"; -- 2.39.5