Commit 8eab098f authored by jun's avatar jun
Browse files

Merge branch 'MDL-70911-master' of git://github.com/sarjona/moodle

parents baa90648 0a0729f4
......@@ -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()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment