From fb6179a16cfa81d7fc6728b7548d2a65e7a48567 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 5 Dec 2006 18:47:40 +0000 Subject: [PATCH] MDL-7804 - Essay questions do not backup properly. Merged from MOODLE_16_STABLE. --- question/type/essay/questiontype.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/question/type/essay/questiontype.php b/question/type/essay/questiontype.php index 2dbefbf94c..1dcbeb41ec 100644 --- a/question/type/essay/questiontype.php +++ b/question/type/essay/questiontype.php @@ -114,6 +114,21 @@ class question_essay_qtype extends default_questiontype { return true; } + + /** + * Backup the extra information specific to an essay question - over and above + * what is in the mdl_question table. + * + * @param file $bf The backup file to write to. + * @param object $preferences the blackup options controlling this backup. + * @param $questionid the id of the question being backed up. + * @param $level indent level in the backup file - so it can be formatted nicely. + */ + function backup($bf, $preferences, $questionid, $level = 6) { + return question_backup_answers($bf, $preferences, $questionid, $level); + } + + // Restore method not needed. } //// END OF CLASS //// -- 2.39.5