~ubuntu-branches/ubuntu/utopic/moodle/utopic

« back to all changes in this revision

Viewing changes to report/log/index.php

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2014-05-12 16:10:38 UTC
  • mfrom: (36.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20140512161038-puyqf65k4e0s8ytz
Tags: 2.6.3-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
 
116
116
require_capability('report/log:view', $context);
117
117
 
118
 
add_to_log($course->id, "course", "report log", "report/log/index.php?id=$course->id", $course->id);
 
118
// Trigger a content view event.
 
119
$event = \report_log\event\content_viewed::create(array('courseid' => $course->id,
 
120
                                                        'other'    => array('content' => 'logs')));
 
121
$event->set_page_detail();
 
122
$event->set_legacy_logdata(array($course->id, "course", "report log", "report/log/index.php?id=$course->id", $course->id));
 
123
$event->trigger();
119
124
 
120
125
if (!empty($page)) {
121
126
    $strlogs = get_string('logs'). ": ". get_string('page', 'report_log', $page+1);
130
135
if ($PAGE->user_allowed_editing() && $adminediting != -1) {
131
136
    $USER->editing = $adminediting;
132
137
}
133
 
session_get_instance()->write_close();
 
138
\core\session\manager::write_close();
134
139
 
135
140
if (!empty($chooselog)) {
136
141
    $userinfo = get_string('allparticipants');