]> git.mjollnir.org Git - moodle.git/commitdiff
Strip some trailing whitespace.
authortjhunt <tjhunt>
Fri, 7 Mar 2008 12:35:10 +0000 (12:35 +0000)
committertjhunt <tjhunt>
Fri, 7 Mar 2008 12:35:10 +0000 (12:35 +0000)
mod/quiz/backuplib.php
mod/quiz/comment.php
mod/quiz/config.html
mod/quiz/db/access.php
mod/quiz/editlib.php
mod/quiz/pagelib.php
mod/quiz/reviewquestion.php

index 0a106340c066b78b8b06b4898ce3d7db90a95050..962a086baa72096c3dc2fde93a72e009f7c57860 100644 (file)
@@ -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 :
     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);
 
         }
         return $status;
     }
-    
+
     /**
      * Helper function adding the id of all the subcategories of a category to an array.
      */
index 65a57e7b78b466ba67e497bf81fe93635a62625b..721570a42b71bdec533d2b2a5ba8b226c3becf59 100644 (file)
@@ -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&amp;attempt=$attempt->id", "$quiz->id", "$cm->id");
 
     if ($data = data_submitted() and confirm_sesskey()) {
@@ -70,8 +70,8 @@
 
         notify(get_string('changessaved'));
         echo '<div class="boxaligncenter"><input type="button" onclick="window.opener.location.reload(1); self.close();return false;" value="' .
-         get_string('closewindow') . "\" /></div>";
-         
+                get_string('closewindow') . "\" /></div>";
+
         print_footer();
         exit;
     }
index cad4da3e74cf6fa50d73dcedbc933f84f5e2f25a..e7b882ba9deb48c25c47cd7f6e16c10e1ff667df 100644 (file)
     <td>
         <input name="timelimitenable" type="checkbox" value="1" alt="<?php print_string('timelimit', 'quiz') ?>" onclick="return lockoptions('form', 'timelimitenable', timelimititems)" <?php if ($form->timelimit) echo 'checked="checked"' ?> />
         <input type="text" name="timelimit" size="3" value="<?php p($form->timelimit ? $form->timelimit : '') ?>" />
-        <?php 
+        <?php
             print_string('minutes');
             helpbutton("timelimit", get_string("quiztimer","quiz"), "quiz");
         ?>
     </td>
     <td align="center">
          <input type="hidden" name="fix_delay2" value="0" />
-         <input type="checkbox" name="fix_delay2" value="1" <?php echo $CFG->quiz_fix_delay2 ? 'checked="checked"' : ''; ?> />        
+         <input type="checkbox" name="fix_delay2" value="1" <?php echo $CFG->quiz_fix_delay2 ? 'checked="checked"' : ''; ?> />
     </td>
 </tr>
 
 </form>
 
 <script type="text/javascript">
-<?php 
+<?php
     if (!$form->timelimit) echo "lockoptions('form','timelimitenable', timelimititems);";
 ?>
 </script>
index 2c9b71d1d0a03ad5a331e8871256bac65bab8e79..4b9a20728ab1ffeaddbfe5da03ec942fb3aac96b 100644 (file)
@@ -88,7 +88,7 @@ $mod_quiz_capabilities = array(
             'admin' => CAP_ALLOW
         )
     ),
-    
+
     'mod/quiz:ignoretimelimits' => array(
         'captype' => 'read',
         'contextlevel' => CONTEXT_MODULE,
index 3598117835eb17e95211f6888c9dce473f3829c9..67f2c0b0c16779746f4591d3a3484080152fc559 100644 (file)
@@ -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 '<div class="quizquestionlistcontrols"><input type="submit" name="repaginate" value="'. get_string('go') .'" /></div>';
     echo '</fieldset>';
     echo '</form>';
index 23326292fdd916cc7cc177a5a21000452ad19bdb..d6d43b0ac0f5498e9de0f89e274c853410b3ea58 100644 (file)
@@ -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;
     }
index cc8c7f805161a96a5b06faceb244df5358a62ba0..b1018a2149ba5efc63552ca50419e8238f30f513 100644 (file)
@@ -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.