mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
admin-roles MDL-22859 Set pagelayout so blocks are displayed.
This commit is contained in:
parent
d367ae7ba1
commit
bd536f5209
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user