Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

quiz: MDL-20586 Oops, remove reference to global $DB.

  • Loading branch information...
commit 28e5664ac2b11707be1065e499668d4808de0da9 1 parent f5bf248
@timhunt timhunt authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 mod/quiz/lib.php
View
8 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 '<div class="title">';
- echo '<img src="' . $CFG->modpixpath . '/' . $activity->type . '/icon.gif" ' .
- 'class="icon" alt="' . $modname . '" />';
+ echo '<img src="' . $CFG->modpixpath . '/' . $activity->type . '/icon.gif" '.
+ 'class="icon" alt="' . $modname . '" />';
echo '<a href="' . $CFG->wwwroot . '/mod/quiz/view.php?id=' .
$activity->cmid . '">' . $activity->name . '</a>';
echo '</div>';
@@ -697,7 +697,7 @@ function quiz_print_recent_mod_activity($activity, $courseid, $detail, $modnames
echo '</div>';
echo '<div class="user">';
- echo '<a href="' . $CFG->wwwroot . '/user/view.php?id=' . $activity->user->userid .
+ echo '<a href="' . $CFG->wwwroot . '/user/view.php?id=' . $activity->user->userid .
'&amp;course=' . $courseid . '">' . $activity->user->fullname .
'</a> - ' . userdate($activity->timestamp);
echo '</div>';
Please sign in to comment.
Something went wrong with that request. Please try again.