From 28e5664ac2b11707be1065e499668d4808de0da9 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Sat, 1 May 2010 07:08:24 +0000 Subject: [PATCH] quiz: MDL-20586 Oops, remove reference to global $DB. --- mod/quiz/lib.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mod/quiz/lib.php b/mod/quiz/lib.php index fe4931f5d97..78e6c9ebc62 100644 --- a/mod/quiz/lib.php +++ b/mod/quiz/lib.php @@ -556,7 +556,7 @@ function quiz_refresh_events($courseid = 0) { */ function quiz_get_recent_mod_activity(&$activities, &$index, $timestart, $courseid, $cmid, $userid = 0, $groupid = 0) { - global $CFG, $COURSE, $USER, $DB; + global $CFG, $COURSE, $USER; require_once('locallib.php'); if ($COURSE->id == $courseid) { @@ -680,8 +680,8 @@ function quiz_print_recent_mod_activity($activity, $courseid, $detail, $modnames if ($detail) { $modname = $modnames[$activity->type]; echo '
'; - echo '' . $modname . ''; + echo '' . $modname . ''; echo '' . $activity->name . ''; echo '
'; @@ -697,7 +697,7 @@ function quiz_print_recent_mod_activity($activity, $courseid, $detail, $modnames echo ''; echo '
'; - echo 'wwwroot . '/user/view.php?id=' . $activity->user->userid . '&course=' . $courseid . '">' . $activity->user->fullname . ' - ' . userdate($activity->timestamp); echo '
'; -- 2.11.4.GIT