Skip to content

Commit

Permalink
Changed navigation bar so it uses Site name instead of "Home"
Browse files Browse the repository at this point in the history
  • Loading branch information
martin committed Dec 4, 2001
1 parent b9187c8 commit a2eaeb9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/moodlelib.php
Expand Up @@ -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";
}
}

Expand Down

0 comments on commit a2eaeb9

Please sign in to comment.