Changed navigation bar so it uses Site name instead of "Home"

This commit is contained in:
martin 2001-12-04 16:00:14 +00:00
parent b9187c882b
commit a2eaeb91cd

View File

@ -51,8 +51,11 @@ function print_footer ($course=NULL) {
function print_navigation ($navigation) {
global $CFG;
if (! $site = get_record("course", "category", 0)) {
$site->shortname = "Home";
}
if ($navigation) {
echo "<A TARGET=_top HREF=\"$CFG->wwwroot/\">Home</A> -> $navigation";
echo "<A TARGET=_top HREF=\"$CFG->wwwroot/\">$site->shortname</A> -> $navigation";
}
}