From: moodler <moodler>
Date: Thu, 25 Mar 2004 14:55:04 +0000 (+0000)
Subject: After an error on import, come back to this page
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e02bd4a191b65aa740222d67abb43a8790efb495;p=moodle.git

After an error on import, come back to this page
---

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 "<hr>";