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

This commit is contained in:
Sam Hemelryk 2010-07-23 02:09:03 +00:00
parent d367ae7ba1
commit bd536f5209
2 changed files with 2 additions and 1 deletions

View File

@ -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) {

View File

@ -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);