Changed navigation bar so it uses Site name instead of "Home"
authormartin <martin>
Tue, 4 Dec 2001 16:00:14 +0000 (16:00 +0000)
committermartin <martin>
Tue, 4 Dec 2001 16:00:14 +0000 (16:00 +0000)
lib/moodlelib.php

index 3e41f72e31a27443c3279f645ba3e4f8cf558fa6..a9bf51b945286435a72ddc15857b844c08187064 100644 (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";
    }
 }