Skip to content

Commit

Permalink
MDL-42535 report_outline: Notice set_url() was not called
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Massart committed Oct 25, 2013
1 parent 2d2c5f3 commit c58d1e0
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions report/outline/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,6 @@
require_capability('report/outline:view', $coursecontext);
}

// Trigger a content view event.
$event = \report_outline\event\content_viewed::create(array('courseid' => $course->id,
'other' => array('content' => 'user outline')));
$event->set_page_detail();
$event->set_legacy_logdata(array($course->id, 'course', 'report outline', "report/outline/user.php?id=$user->id&course=$course->id&mode=$mode", $course->id));
$event->trigger();

$stractivityreport = get_string('activityreport');

$PAGE->set_pagelayout('admin');
Expand All @@ -68,8 +61,16 @@
$PAGE->navigation->set_userid_for_parent_checks($user->id); // see MDL-25805 for reasons and for full commit reference for reversal when fixed.
$PAGE->set_title("$course->shortname: $stractivityreport");
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();

// Trigger a content view event.
$event = \report_outline\event\content_viewed::create(array('courseid' => $course->id,
'other' => array('content' => 'user outline')));
$event->set_page_detail();
$event->set_legacy_logdata(array($course->id, 'course', 'report outline',
"report/outline/user.php?id=$user->id&course=$course->id&mode=$mode", $course->id));
$event->trigger();

echo $OUTPUT->header();

$modinfo = get_fast_modinfo($course);
$sections = $modinfo->get_section_info_all();
Expand Down

0 comments on commit c58d1e0

Please sign in to comment.