mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-70911 core_badges: Add navigation menu in classic
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).
This commit is contained in:
parent
49c1d41a60
commit
0a0729f48e
@ -29,8 +29,6 @@ $PAGE->set_context($context);
|
||||
|
||||
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);
|
||||
@ -47,6 +45,8 @@ $PAGE->set_url($url);
|
||||
$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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user