mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
MDL-57385 core: Set page layouts of non-mydashboard pages to standard
The following pages are using the "mydashboard" page layout: * User preferences > Badges > Manage badges * User preferences > Badges > Backpack settings * User preferences > Repositories > Manage instances * Private files However, the "mydashboard" page layout should only be used for the user's dashboard page. Changing these to use the "standard" page layout.
This commit is contained in:
parent
8ed0851a5e
commit
ab1ca45eb0
4 changed files with 3 additions and 4 deletions
|
@ -50,7 +50,7 @@ $PAGE->set_context($context);
|
|||
$title = get_string('backpackdetails', 'badges');
|
||||
$PAGE->set_title($title);
|
||||
$PAGE->set_heading(fullname($USER));
|
||||
$PAGE->set_pagelayout('mydashboard');
|
||||
$PAGE->set_pagelayout('standard');
|
||||
|
||||
$backpack = $DB->get_record('badge_backpack', array('userid' => $USER->id));
|
||||
$badgescache = cache::make('core', 'externalbadges');
|
||||
|
|
|
@ -89,7 +89,7 @@ $PAGE->set_context($context);
|
|||
$title = get_string('badges', 'badges');
|
||||
$PAGE->set_title($title);
|
||||
$PAGE->set_heading(fullname($USER));
|
||||
$PAGE->set_pagelayout('mydashboard');
|
||||
$PAGE->set_pagelayout('standard');
|
||||
|
||||
// Include JS files for backpack support.
|
||||
badges_setup_backpack_js();
|
||||
|
|
|
@ -91,7 +91,6 @@ if ($context->contextlevel == CONTEXT_COURSE) {
|
|||
print_error('notyourinstances', 'repository');
|
||||
}
|
||||
$user = $USER;
|
||||
$PAGE->set_pagelayout('mydashboard');
|
||||
} else {
|
||||
print_error('invalidcontext');
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ $PAGE->set_url('/user/files.php');
|
|||
$PAGE->set_context($context);
|
||||
$PAGE->set_title($title);
|
||||
$PAGE->set_heading(fullname($USER));
|
||||
$PAGE->set_pagelayout('mydashboard');
|
||||
$PAGE->set_pagelayout('standard');
|
||||
$PAGE->set_pagetype('user-files');
|
||||
|
||||
$maxbytes = $CFG->userquota;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue