removed global vars declaration for var not used in method.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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'));
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user