Skip to content
Browse files

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

  • Loading branch information...
1 parent b9187c8 commit a2eaeb91cde6e1de4a55eba85f04cc3630549f18 martin committed Dec 4, 2001
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/moodlelib.php
View
5 lib/moodlelib.php
@@ -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";
}
}

0 comments on commit a2eaeb9

Please sign in to comment.
Something went wrong with that request. Please try again.