Merge branch 'MDL-45237-master' of git://github.com/danpoltawski/moodle

This commit is contained in:
Marina Glancy 2014-05-02 11:13:06 +08:00
commit e2c3c3e080

View File

@ -30,10 +30,13 @@ $page = optional_param('page', 0, PARAM_INT);
$since = optional_param('since', 0, PARAM_INT);
$logreader = optional_param('logreader', '', PARAM_COMPONENT); // Reader which will be used for displaying logs.
$PAGE->set_url('/report/loglive/loglive_ajax.php');
// Capability checks.
if (empty($id)) {
require_login();
$context = context_system::instance();
$PAGE->set_context($context);
} else {
$course = get_course($id);
require_login($course);