mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +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
|
@ -94,9 +94,9 @@
|
|||
if (empty($cm->visible) and !has_capability('mod/data:managetemplates', $context)) {
|
||||
$strdatabases = get_string("modulenameplural", "data");
|
||||
|
||||
$crumbs[] = array('name' => $strdatabases, 'link' => "index.php?id=$course->id", 'type' => 'activity');
|
||||
$crumbs[] = array('name' => format_string($data->name), 'link' => '', 'type' => 'activityinstance');
|
||||
$navigation = build_navigation($crumbs);
|
||||
$navlinks[] = array('name' => $strdatabases, 'link' => "index.php?id=$course->id", 'type' => 'activity');
|
||||
$navlinks[] = array('name' => format_string($data->name), 'link' => '', 'type' => 'activityinstance');
|
||||
$navigation = build_navigation($navlinks);
|
||||
|
||||
print_header_simple(format_string($data->name), "",
|
||||
$navigation, "", "", true, '', navmenu($course, $cm));
|
||||
|
@ -258,6 +258,12 @@
|
|||
if (!empty($THEME->customcorners)) print_custom_corners_start();
|
||||
}
|
||||
|
||||
/// Check to see if groups are being used here
|
||||
$groupmode = groupmode($course, $cm);
|
||||
$currentgroup = setup_and_print_groups($course, $groupmode,
|
||||
'view.php?d='.$data->id.'&search='.s($search).'&sort='.s($sort).
|
||||
'&order='.s($order).'&');
|
||||
|
||||
print_heading(format_string($data->name));
|
||||
|
||||
// Do we need to show a link to the RSS feed for the records?
|
||||
|
@ -272,15 +278,6 @@
|
|||
print_box(format_text($data->intro), 'generalbox', 'intro');
|
||||
}
|
||||
|
||||
/// Check to see if groups are being used here
|
||||
if ($groupmode = groupmode($course, $cm)) { // Groups are being used
|
||||
$currentgroup = setup_and_print_groups($course, $groupmode,
|
||||
'view.php?d='.$data->id.'&search='.s($search).'&sort='.s($sort).
|
||||
'&order='.s($order).'&');
|
||||
} else {
|
||||
$currentgroup = 0;
|
||||
}
|
||||
|
||||
/// Delete any requested records
|
||||
|
||||
if ($delete && confirm_sesskey() && (has_capability('mod/data:manageentries', $context) or data_isowner($delete))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue