removed global vars declaration for var not used in method.
authorjamiesensei <jamiesensei>
Fri, 27 Apr 2007 05:55:57 +0000 (05:55 +0000)
committerjamiesensei <jamiesensei>
Fri, 27 Apr 2007 05:55:57 +0000 (05:55 +0000)
mod/quiz/report/analysis/report.php
mod/quiz/report/grading/report.php
mod/quiz/report/overview/report.php
mod/quiz/report/regrade/report.php

index be9f2fc8c0588ba3fd131ba2afc19bebdab990d8..e77f03a53201c7fc514bae9ae64e3a9f9f954713 100644 (file)
@@ -6,7 +6,7 @@
 class quiz_report extends quiz_default_report {
 
     function display($quiz, $cm, $course) {     /// This function just displays the report
-        global $CFG, $SESSION, $db, $QTYPES;
+        global $CFG, $SESSION, $QTYPES;
         $strnoquiz = get_string('noquiz','quiz');
         $strnoattempts = get_string('noattempts','quiz');
     /// Only print headers if not asked to download data
index 15ae8ff80d84d4de0625106a8d7777f1b83df1aa..846c741280c8fda4de810e82149fa02933b5c20e 100644 (file)
@@ -28,7 +28,6 @@ class quiz_report extends quiz_default_report {
      * Displays the report.
      */
     function display($quiz, $cm, $course) {
-        global $CFG, $SESSION, $USER, $db, $QTYPES;
 
         $action = optional_param('action', 'viewquestions', PARAM_ALPHA);
         $questionid = optional_param('questionid', 0, PARAM_INT);
index 56495957c37ab319139e75a67a35458d912f2056..0ca4290683a25274b37466898a01b63cf6af0f0c 100644 (file)
@@ -16,7 +16,7 @@ class quiz_report extends quiz_default_report {
      * Display the report.
      */
     function display($quiz, $cm, $course) {
-        global $CFG, $SESSION, $db, $QTYPES;
+        global $CFG, $db;
 
         // Define some strings
         $strreallydel  = addslashes(get_string('deleteattemptcheck','quiz'));
index 5943921a3424e4239cb8b962df17710c4dea5206..3743dc6c223a7ad0f1e5e6f9885685de838b4503 100644 (file)
@@ -6,7 +6,7 @@ require_once($CFG->libdir.'/tablelib.php');
 class quiz_report extends quiz_default_report {
 
     function display($quiz, $cm, $course) {
-        global $CFG, $SESSION, $db, $QTYPES;
+        global $CFG;
 
         // Print header
         $this->print_header_and_tabs($cm, $course, $quiz, $reportmode="regrade");