From 12fcd27da68c4b87200fee7beea45e0fdea6e7c5 Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Mon, 13 Mar 2006 00:18:38 +0000 Subject: [PATCH] Some work on question restore code, not complete --- backup/restorelib.php | 5 +- mod/quiz/restorelib.php | 1637 +---------------- question/questiontypes/essay/restorelib.php | 26 + question/questiontypes/rqp/restorelib.php | 26 + question/restorelib.php | 1830 ++----------------- 5 files changed, 265 insertions(+), 3259 deletions(-) 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 "