Commit bd536f52 authored by Sam Hemelryk's avatar Sam Hemelryk
Browse files

admin-roles MDL-22859 Set pagelayout so blocks are displayed.

parent d367ae7b
......@@ -55,6 +55,7 @@ if (!has_capability('moodle/role:override', $context)) {
}
$PAGE->set_url($url);
$PAGE->set_context($context);
$PAGE->set_pagelayout('admin');
$courseid = $course->id;
......@@ -79,7 +80,6 @@ $title = get_string('overridepermissionsforrole', 'role', $a);
$currenttab = 'permissions';
$PAGE->set_pagelayout('admin');
$PAGE->set_title($title);
$PAGE->navbar->add($straction);
switch ($context->contextlevel) {
......
......@@ -44,6 +44,7 @@ $baseurl = new moodle_url('/admin/roles/usersroles.php', array('userid'=>$userid
$PAGE->set_url($baseurl);
$PAGE->set_context($coursecontext);
$PAGE->set_pagelayout('admin');
/// Check login and permissions.
require_login($course);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment