mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merge branch 'MDL-45237-master' of git://github.com/danpoltawski/moodle
This commit is contained in:
commit
e2c3c3e080
@ -30,10 +30,13 @@ $page = optional_param('page', 0, PARAM_INT);
|
|||||||
$since = optional_param('since', 0, PARAM_INT);
|
$since = optional_param('since', 0, PARAM_INT);
|
||||||
$logreader = optional_param('logreader', '', PARAM_COMPONENT); // Reader which will be used for displaying logs.
|
$logreader = optional_param('logreader', '', PARAM_COMPONENT); // Reader which will be used for displaying logs.
|
||||||
|
|
||||||
|
$PAGE->set_url('/report/loglive/loglive_ajax.php');
|
||||||
|
|
||||||
// Capability checks.
|
// Capability checks.
|
||||||
if (empty($id)) {
|
if (empty($id)) {
|
||||||
require_login();
|
require_login();
|
||||||
$context = context_system::instance();
|
$context = context_system::instance();
|
||||||
|
$PAGE->set_context($context);
|
||||||
} else {
|
} else {
|
||||||
$course = get_course($id);
|
$course = get_course($id);
|
||||||
require_login($course);
|
require_login($course);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user