Merge branch 'MDL-74313-master' of https://github.com/peterRd/moodle

This commit is contained in:
Andrew Nicols 2022-03-31 23:36:04 +08:00
commit 11d63a54a6

View File

@ -37,6 +37,7 @@ $output = $PAGE->get_renderer('core', 'badges');
$PAGE->set_url('/badges/badge.php', array('hash' => $id));
$PAGE->set_pagelayout('base');
$PAGE->set_title(get_string('issuedbadge', 'badges'));
$PAGE->set_secondary_navigation(false);
$badge = new \core_badges\output\issued_badge($id);
if (!empty($badge->recipient->id)) {