removed global vars declaration for var not used in method.

This commit is contained in:
jamiesensei
2007-04-27 05:55:57 +00:00
parent f3ba642c5c
commit 1f21cc88f7
4 changed files with 3 additions and 4 deletions
+1 -1
View 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
-1
View 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);
+1 -1
View 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'));
+1 -1
View 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");