diff --git a/mod/quiz/backuplib.php b/mod/quiz/backuplib.php index 0a106340c06..962a086baa7 100644 --- a/mod/quiz/backuplib.php +++ b/mod/quiz/backuplib.php @@ -30,7 +30,7 @@ // the data about student interaction with the questions. The functions to do // that are included with the following library require_once("$CFG->dirroot/question/backuplib.php"); - + /* * Insert necessary category ids to backup_ids table. Called during backup_check.html. * This backs up ids for quiz module. It backs up : @@ -41,13 +41,13 @@ function quiz_insert_category_and_question_ids($course, $backup_unique_code, $instances = null) { global $CFG; $status = true; - + // Create missing categories and reasign orphaned questions. quiz_fix_orphaned_questions($course); $coursecontext = get_context_instance(CONTEXT_COURSE, $course); $status = $status && question_insert_c_and_q_ids_for_course($coursecontext, $backup_unique_code); - + // then, all categories and questions from this course's modules' contexts. $status = $status && question_insert_c_and_q_ids_for_module($backup_unique_code, $course, 'quiz', $instances); @@ -157,7 +157,7 @@ } return $status; } - + /** * Helper function adding the id of all the subcategories of a category to an array. */ diff --git a/mod/quiz/comment.php b/mod/quiz/comment.php index 65a57e7b78b..721570a42b7 100644 --- a/mod/quiz/comment.php +++ b/mod/quiz/comment.php @@ -31,7 +31,7 @@ require_login($course, true, $cm); $context = get_context_instance(CONTEXT_MODULE, $cm->id); - + require_capability('mod/quiz:grade', $context); // Load question @@ -40,7 +40,7 @@ } $question->maxgrade = get_field('quiz_question_instances', 'grade', 'quiz', $quiz->id, 'question', $question->id); // Some of the questions code is optimised to work with several questions - // at once so it wants the question to be in an array. + // at once so it wants the question to be in an array. $key = $question->id; $questions[$key] = &$question; // Add additional questiontype specific information to the question objects. @@ -56,7 +56,7 @@ print_header(); print_heading(format_string($question->name)); - + //add_to_log($course->id, 'quiz', 'review', "review.php?id=$cm->id&attempt=$attempt->id", "$quiz->id", "$cm->id"); if ($data = data_submitted() and confirm_sesskey()) { @@ -70,8 +70,8 @@ notify(get_string('changessaved')); echo '
"; - + get_string('closewindow') . "\" />"; + print_footer(); exit; } diff --git a/mod/quiz/config.html b/mod/quiz/config.html index cad4da3e74c..e7b882ba9de 100644 --- a/mod/quiz/config.html +++ b/mod/quiz/config.html @@ -126,7 +126,7 @@