Skip to content

Commit

Permalink
MDL-70911 core_badges: Add navigation menu in classic
Browse files Browse the repository at this point in the history
Manage backpacks page wasn't displaying the navigation and administration
menus when using classic theme (it's unrelated to changes done here).
This patch fixes this unexpected behaviour (raised thanks to behat tests).
  • Loading branch information
sarjona committed Mar 11, 2021
1 parent 49c1d41 commit 0a0729f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions badges/backpacks.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@

require_login(0, false);
require_capability('moodle/badges:manageglobalsettings', $context);
// There should be an admin setting to completely turn off badges.
$output = $PAGE->get_renderer('core', 'badges');

$id = optional_param('id', 0, PARAM_INT);
$action = optional_param('action', '', PARAM_ALPHA);
Expand All @@ -47,6 +45,8 @@
$PAGE->set_title(get_string('managebackpacks', 'badges'));
$PAGE->set_heading($SITE->fullname);

$output = $PAGE->get_renderer('core', 'badges');

$msg = '';
$msgtype = 'error';
if ($action == 'delete' && $confirm && confirm_sesskey()) {
Expand Down

0 comments on commit 0a0729f

Please sign in to comment.