From a6a89b9eab5a512d84a63e626e2f1541199b35d7 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Fri, 7 Mar 2008 12:35:10 +0000 Subject: [PATCH] Strip some trailing whitespace. --- mod/quiz/backuplib.php | 8 ++++---- mod/quiz/comment.php | 10 +++++----- mod/quiz/config.html | 6 +++--- mod/quiz/db/access.php | 2 +- mod/quiz/editlib.php | 2 +- mod/quiz/pagelib.php | 2 +- mod/quiz/reviewquestion.php | 2 +- 7 files changed, 16 insertions(+), 16 deletions(-) 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 @@ timelimit) echo 'checked="checked"' ?> /> - @@ -328,7 +328,7 @@ - quiz_fix_delay2 ? 'checked="checked"' : ''; ?> /> + quiz_fix_delay2 ? 'checked="checked"' : ''; ?> /> @@ -384,7 +384,7 @@ diff --git a/mod/quiz/db/access.php b/mod/quiz/db/access.php index 2c9b71d1d0a..4b9a20728ab 100644 --- a/mod/quiz/db/access.php +++ b/mod/quiz/db/access.php @@ -88,7 +88,7 @@ $mod_quiz_capabilities = array( 'admin' => CAP_ALLOW ) ), - + 'mod/quiz:ignoretimelimits' => array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, diff --git a/mod/quiz/editlib.php b/mod/quiz/editlib.php index 3598117835e..67f2c0b0c16 100644 --- a/mod/quiz/editlib.php +++ b/mod/quiz/editlib.php @@ -354,7 +354,7 @@ function quiz_print_question_list($quiz, $pageurl, $allowdelete=true, $showbreak print_string('reordertool', 'quiz'); echo ' '; helpbutton('reorderingtool', get_string('reordertool', 'quiz'), 'quiz'); - + echo '
'; echo ''; echo ''; diff --git a/mod/quiz/pagelib.php b/mod/quiz/pagelib.php index 23326292fdd..d6d43b0ac0f 100644 --- a/mod/quiz/pagelib.php +++ b/mod/quiz/pagelib.php @@ -25,7 +25,7 @@ class page_quiz extends page_generic_activity { $this->activityname = 'quiz'; parent::init_quick($data); } - + function get_type() { return PAGE_QUIZ_VIEW; } diff --git a/mod/quiz/reviewquestion.php b/mod/quiz/reviewquestion.php index cc8c7f80516..b1018a2149b 100644 --- a/mod/quiz/reviewquestion.php +++ b/mod/quiz/reviewquestion.php @@ -96,7 +96,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.