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
* 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);
* 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'));
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");