mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-9615: Correct incorrect use of term breadcrumbs
- $crumbs -> $navlinks Author: Matt Clarkson <mattc@catalyst.net.nz>
This commit is contained in:
parent
7994464178
commit
3b27b0fe21
99 changed files with 471 additions and 547 deletions
|
@ -672,9 +672,9 @@
|
|||
$focuscursor = "form.name";
|
||||
}
|
||||
|
||||
$crumbs[] = array('name' => $strmodulenameplural, 'link' => "$CFG->wwwroot/mod/$module->name/index.php?id=$course->id", 'type' => 'activity');
|
||||
$crumbs[] = array('name' => $streditinga, 'link' => '', 'type' => 'action');
|
||||
$navigation = build_navigation($crumbs);
|
||||
$navlinks[] = array('name' => $strmodulenameplural, 'link' => "$CFG->wwwroot/mod/$module->name/index.php?id=$course->id", 'type' => 'activity');
|
||||
$navlinks[] = array('name' => $streditinga, 'link' => '', 'type' => 'action');
|
||||
$navigation = build_navigation($navlinks);
|
||||
|
||||
print_header_simple($streditinga, '', $navigation, $focuscursor, "", false);
|
||||
|
||||
|
|
|
@ -111,7 +111,7 @@
|
|||
$pageheading = get_string("updatinga", "moodle", $fullmodulename);
|
||||
}
|
||||
|
||||
$crumbsinstancename = array('name' => format_string($form->name,true), 'link' => "$CFG->wwwroot/mod/$module->name/view.php?id=$cm->id", 'type' => 'activityinstance');
|
||||
$navlinksinstancename = array('name' => format_string($form->name,true), 'link' => "$CFG->wwwroot/mod/$module->name/view.php?id=$cm->id", 'type' => 'activityinstance');
|
||||
|
||||
$CFG->pagepath = 'mod/'.$module->name;
|
||||
if (!empty($type)) {
|
||||
|
@ -299,13 +299,13 @@
|
|||
$streditinga = get_string("editinga", "moodle", $fullmodulename);
|
||||
$strmodulenameplural = get_string("modulenameplural", $module->name);
|
||||
|
||||
$crumbs[] = array('name' => $strmodulenameplural, 'link' => "$CFG->wwwroot/mod/$module->name/index.php?id=$course->id", 'type' => 'activity');
|
||||
if (isset($crumbsinstancename)) {
|
||||
$crumbs[] = $crumbsinstancename;
|
||||
$navlinks[] = array('name' => $strmodulenameplural, 'link' => "$CFG->wwwroot/mod/$module->name/index.php?id=$course->id", 'type' => 'activity');
|
||||
if (isset($navlinksinstancename)) {
|
||||
$navlinks[] = $navlinksinstancename;
|
||||
}
|
||||
$crumbs[] = array('name' => $streditinga, 'link' => '', 'type' => 'title');
|
||||
$navlinks[] = array('name' => $streditinga, 'link' => '', 'type' => 'title');
|
||||
|
||||
$navigation = build_navigation($crumbs);
|
||||
$navigation = build_navigation($navlinks);
|
||||
|
||||
print_header_simple($streditinga, '', $navigation, $mform->focus(), "", false);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue