diff --git a/badges/backpacks.php b/badges/backpacks.php index 84db40180db37..7a18276336c26 100644 --- a/badges/backpacks.php +++ b/badges/backpacks.php @@ -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); @@ -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()) {