From: gustav_delius Date: Mon, 13 Mar 2006 00:18:38 +0000 (+0000) Subject: Some work on question restore code, not complete X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=12fcd27da68c4b87200fee7beea45e0fdea6e7c5;p=moodle.git Some work on question restore code, not complete --- diff --git a/backup/restorelib.php b/backup/restorelib.php index e44c5c3c88..2462aac269 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -4822,8 +4822,6 @@ } } } - // The following will be enabled once the quiz and question restore code are separated - //include_once("$CFG->dirroot/question/restorelib.php"); if (!defined('RESTORE_SILENTLY')) { //Start the main table @@ -5041,8 +5039,9 @@ } - //Now create categories and questions as needed (STEP1) + //Now create categories and questions as needed if ($status and ($restore->mods['quiz']->restore)) { + include_once("$CFG->dirroot/question/restorelib.php"); if (!defined('RESTORE_SILENTLY')) { echo "
  • ".get_string("creatingcategoriesandquestions"); echo "