Make a $homepage flag for use in footers
authormoodler <moodler>
Wed, 6 Nov 2002 15:46:12 +0000 (15:46 +0000)
committermoodler <moodler>
Wed, 6 Nov 2002 15:46:12 +0000 (15:46 +0000)
lib/moodlelib.php

index 649f1ec..285b7e1 100644 (file)
@@ -74,8 +74,8 @@ function print_footer ($course=NULL) {
         if ($course == "home") {   // special case for site home page - please do not remove
             $homelink  = "<P ALIGN=center><A TITLE=\"Moodle $CFG->release ($CFG->version)\" HREF=\"http://moodle.com/\">";
             $homelink .= "<BR><IMG WIDTH=130 HEIGHT=19 SRC=\"pix/madewithmoodle2.gif\" BORDER=0></A></P>";
         if ($course == "home") {   // special case for site home page - please do not remove
             $homelink  = "<P ALIGN=center><A TITLE=\"Moodle $CFG->release ($CFG->version)\" HREF=\"http://moodle.com/\">";
             $homelink .= "<BR><IMG WIDTH=130 HEIGHT=19 SRC=\"pix/madewithmoodle2.gif\" BORDER=0></A></P>";
-
             $course = get_site();
             $course = get_site();
+            $homepage = true;
         } else {
             $homelink = "<A TARGET=_top HREF=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</A>";
         }
         } else {
             $homelink = "<A TARGET=_top HREF=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</A>";
         }