mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 09:56:38 +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
|
@ -58,22 +58,26 @@ if ($action == 'delchoice') {
|
|||
|
||||
|
||||
/// Display the choice and possibly results
|
||||
$crumbs[] = array('name' => $strchoices, 'link' => "index.php?id=$course->id", 'type' => 'activity');
|
||||
$crumbs[] = array('name' => format_string($choice->name), 'link' => '', 'type' => 'activityinstance');
|
||||
$navlinks[] = array('name' => $strchoices, 'link' => "index.php?id=$course->id", 'type' => 'activity');
|
||||
$navlinks[] = array('name' => format_string($choice->name), 'link' => '', 'type' => 'activityinstance');
|
||||
|
||||
$navigation = build_navigation($crumbs);
|
||||
$navigation = build_navigation($navlinks);
|
||||
|
||||
print_header_simple(format_string($choice->name), "", $navigation, "", "", true,
|
||||
update_module_button($cm->id, $course->id, $strchoice), navmenu($course, $cm));
|
||||
|
||||
add_to_log($course->id, "choice", "view", "view.php?id=$cm->id", $choice->id, $cm->id);
|
||||
|
||||
|
||||
/// Check to see if groups are being used in this choice
|
||||
$groupmode = groupmode($course, $cm);
|
||||
setup_and_print_groups($course, $groupmode, 'view.php?id='.$id);
|
||||
|
||||
if (has_capability('mod/choice:readresponses', $context)) {
|
||||
choice_show_reportlink($choice, $course->id, $cm->id);
|
||||
} else if (!$cm->visible) {
|
||||
notice(get_string("activityiscurrentlyhidden"));
|
||||
choice_show_reportlink($choice, $course->id, $cm->id, $groupmode);
|
||||
}
|
||||
|
||||
echo '<div class="clearer"></div>';
|
||||
|
||||
if ($choice->text) {
|
||||
print_box(format_text($choice->text, $choice->format), 'generalbox', 'intro');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue