mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merge branch 'MDL-47555' of https://github.com/rlorenzo/moodle
This commit is contained in:
commit
7117571c34
@ -94,6 +94,9 @@
|
||||
|
||||
require_once($CFG->dirroot.'/calendar/lib.php'); /// This is after login because it needs $USER
|
||||
|
||||
// Must set layout before gettting section info. See MDL-47555.
|
||||
$PAGE->set_pagelayout('course');
|
||||
|
||||
if ($section and $section > 0) {
|
||||
|
||||
// Get section details and check it exists.
|
||||
@ -112,7 +115,6 @@
|
||||
// Fix course format if it is no longer installed
|
||||
$course->format = course_get_format($course)->get_format();
|
||||
|
||||
$PAGE->set_pagelayout('course');
|
||||
$PAGE->set_pagetype('course-view-' . $course->format);
|
||||
$PAGE->set_other_editing_capability('moodle/course:update');
|
||||
$PAGE->set_other_editing_capability('moodle/course:manageactivities');
|
||||
|
Loading…
x
Reference in New Issue
Block a user