mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
Changed navigation bar so it uses Site name instead of "Home"
This commit is contained in:
parent
b9187c882b
commit
a2eaeb91cd
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user