$navlinks[] = array('name' => $dirs[$numdirs-1], 'link' => null, 'type' => 'misc');
}
+ $navigation = build_navigation($navlinks);
if ($choose) {
print_header();
<?php
}
- $fullnav = str_replace('->', '»', format_string($course->shortname) . " -> $fullnav");
+ $fullnav = '';
+ $i = 0;
+ foreach ($navlinks as $navlink) {
+ // If this is the last link do not link
+ if ($i == count($navlinks) - 1) {
+ $fullnav .= $navlink['name'];
+ } else {
+ $fullnav .= '<a href="'.$navlink['link'].'">'.$navlink['name'].'</a>';
+ }
+ $fullnav .= ' -> ';
+ $i++;
+ }
+ $fullnav = substr($fullnav, 0, -4);
+ $fullnav = str_replace('->', '»', format_string($course->shortname) . " -> " . $fullnav);
echo '<div id="nav-bar">'.$fullnav.'</div>';
if ($course->id == SITEID and $wdir != "/backupdata") {
}
} else {
- $navigation = build_navigation($navlinks);
print_header("$course->shortname: $strfiles", $course->fullname, $navigation, $formfield);
}
}