mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +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
|
@ -22,8 +22,8 @@
|
|||
$strsubmitted = get_string("submitted", "assignment");
|
||||
$strgrade = get_string("grade");
|
||||
|
||||
$crumbs[] = array('name' => $strassignments, 'link' => '', 'type' => 'activity');
|
||||
$navigation = build_navigation($crumbs);
|
||||
$navlinks[] = array('name' => $strassignments, 'link' => '', 'type' => 'activity');
|
||||
$navigation = build_navigation($navlinks);
|
||||
|
||||
print_header_simple($strassignments, "", $navigation, "", "", true, "", navmenu($course));
|
||||
|
||||
|
@ -45,7 +45,7 @@
|
|||
$table->align = array ("left", "left", "left", "right");
|
||||
}
|
||||
|
||||
$currentgroup = get_current_group($course->id);
|
||||
$currentgroup = get_and_set_current_group($course, groupmode($course));
|
||||
if ($currentgroup and has_capability('moodle/site:accessallgroups', get_context_instance(CONTEXT_COURSE, $id))) {
|
||||
$group = groups_get_group($currentgroup, false);
|
||||
$groupname = " ($group->name)";
|
||||
|
|
|
@ -959,10 +959,10 @@ class assignment_base {
|
|||
|
||||
add_to_log($course->id, 'assignment', 'view submission', 'submissions.php?id='.$this->assignment->id, $this->assignment->id, $this->cm->id);
|
||||
|
||||
$crumbs[] = array('name' => $this->strassignments, 'link' => "index.php?id=$course->id", 'type' => 'activity');
|
||||
$crumbs[] = array('name' => format_string($this->assignment->name,true), 'link' => "view.php?a={$this->assignment->id}", 'type' => 'activityinstance');
|
||||
$crumbs[] = array('name' => $this->strsubmissions, 'link' => '', 'type' => 'title');
|
||||
$navigation = build_navigation($crumbs);
|
||||
$navlinks[] = array('name' => $this->strassignments, 'link' => "index.php?id=$course->id", 'type' => 'activity');
|
||||
$navlinks[] = array('name' => format_string($this->assignment->name,true), 'link' => "view.php?a={$this->assignment->id}", 'type' => 'activityinstance');
|
||||
$navlinks[] = array('name' => $this->strsubmissions, 'link' => '', 'type' => 'title');
|
||||
$navigation = build_navigation($navlinks);
|
||||
|
||||
print_header_simple(format_string($this->assignment->name,true), "", $navigation, '', '', true, update_module_button($cm->id, $course->id, $this->strassignment), navmenu($course, $cm));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue