]> git.mjollnir.org Git - moodle.git/commitdiff
After an error on import, come back to this page
authormoodler <moodler>
Thu, 25 Mar 2004 14:55:04 +0000 (14:55 +0000)
committermoodler <moodler>
Thu, 25 Mar 2004 14:55:04 +0000 (14:55 +0000)
mod/quiz/import.php

index 9219963cd8da45714867b8cc2165ab743f98d22a..02d6dc5df76393e406cb8b23a3a68700521d3288 100644 (file)
             $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>";