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/course/view.php

    r136 r1331  
    55    require_once('../config.php');
    66    require_once('lib.php');
    7     require_once($CFG->libdir.'/conditionlib.php');
    87    require_once($CFG->libdir.'/completionlib.php');
    98
     
    287286    // We don't trust $context here. Course format inclusion above executes in the global space. We can't assume
    288287    // anything after that point.
    289     $eventdata = array('context' => context_course::instance($course->id));
    290     if (!empty($section) && (int)$section == $section) {
    291         $eventdata['other'] = array('coursesectionid' => $section);
    292     }
    293     $event = \core\event\course_viewed::create($eventdata);
    294     $event->trigger();
     288    course_view(context_course::instance($course->id), $section);
    295289
    296290    // Include course AJAX
Note: See TracChangeset for help on using the changeset viewer.