Ignore:
Timestamp:
May 2, 2016, 12:09:23 PM (3 years ago)
Author:
jrpelegrina
Message:

Updated to moodle 3.0.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • moodle/trunk/fuentes/grade/report/user/index.php

    r136 r1331  
    135135
    136136        $studentnamelink = html_writer::link(new moodle_url('/user/view.php', array('id' => $report->user->id, 'course' => $courseid)), fullname($report->user));
    137         print_grade_page_head($courseid, 'report', 'user', get_string('pluginname', 'gradereport_user') . ' - ' . $studentnamelink);
     137        print_grade_page_head($courseid, 'report', 'user', get_string('pluginname', 'gradereport_user') . ' - ' . $studentnamelink,
     138                false, false, true, null, null, $report->user);
     139
    138140        groups_print_course_menu($course, $gpr->get_return_url('index.php?id='.$courseid, array('userid'=>0)));
    139141
     
    165167}
    166168
    167 $event = \gradereport_user\event\grade_report_viewed::create(
    168     array(
    169         'context' => $context,
    170         'courseid' => $courseid,
    171         'relateduserid' => $userid,
    172     )
    173 );
    174 $event->trigger();
     169if (isset($report)) {
     170    // Trigger report viewed event.
     171    $report->viewed();
     172} else {
     173    echo html_writer::tag('div', '', array('class' => 'clearfix'));
     174    echo $OUTPUT->notification(get_string('nostudentsyet'));
     175}
    175176
    176177echo $OUTPUT->footer();
Note: See TracChangeset for help on using the changeset viewer.