Skip to content

Commit

Permalink
MDL-57385 core: Set page layouts of non-mydashboard pages to standard
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
junpataleta committed Jan 10, 2017
1 parent 8ed0851 commit ab1ca45
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion badges/mybackpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
$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');
Expand Down
2 changes: 1 addition & 1 deletion badges/mybadges.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
$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();
Expand Down
1 change: 0 additions & 1 deletion repository/manage_instances.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@
print_error('notyourinstances', 'repository');
}
$user = $USER;
$PAGE->set_pagelayout('mydashboard');
} else {
print_error('invalidcontext');
}
Expand Down
2 changes: 1 addition & 1 deletion user/files.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
$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;
Expand Down

0 comments on commit ab1ca45

Please sign in to comment.