Skip to content

Commit

Permalink
MDL-73645 badges: Update breadcrumb nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihail Geshoski committed Mar 2, 2022
1 parent e7d9be5 commit 1b2c0e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion badges/award.php
Expand Up @@ -69,7 +69,9 @@

// Set up navigation and breadcrumbs.
$strrecipients = get_string('recipients', 'badges');
$PAGE->navbar->add($badge->name, new moodle_url('overview.php', array('id' => $badge->id)))->add($strrecipients);
$PAGE->navbar->add($badge->name, new moodle_url('overview.php', array('id' => $badge->id)))
->add($strrecipients, new moodle_url('recipients.php', array('id' => $badge->id)))
->add(get_string('award', 'badges'));
$PAGE->set_title($strrecipients);
$PAGE->set_heading($heading);

Expand Down
4 changes: 3 additions & 1 deletion badges/criteria_settings.php
Expand Up @@ -73,7 +73,9 @@
$PAGE->set_url('/badges/criteria_settings.php', $urlparams);
$PAGE->set_heading($heading);
$PAGE->set_title($badge->name);
$PAGE->navbar->add($badge->name, new moodle_url('overview.php', array('id' => $badge->id)))->add(get_string('criteria_' . $type, 'badges'));
$PAGE->navbar->add($badge->name, new moodle_url('overview.php', array('id' => $badge->id)))
->add(get_string('bcriteria', 'badges'), new moodle_url('criteria.php', ['id' => $badge->id]))
->add(get_string('criteria_' . $type, 'badges'));

$cparams = array('criteriatype' => $type, 'badgeid' => $badge->id);
if ($edit) {
Expand Down

0 comments on commit 1b2c0e6

Please sign in to comment.