Permalink
Browse files

More accessible log in button up top

  • Loading branch information...
1 parent b1a1b00 commit a325bd2bf62c09672f2bd55e31a9b6f4067ffa28 martin committed Jun 16, 2002
Showing with 6 additions and 1 deletion.
  1. +6 −1 index.php
View
@@ -8,9 +8,14 @@
redirect("$CFG->wwwroot/admin/");
}
+ if ($USER) {
+ $headerbutton = update_course_icon($site->id);
+ } else {
+ $headerbutton = "<FONT SIZE=2><A HREF=\"login/\">Log in</A></FONT>";
+ }
print_header("$site->fullname", "$site->fullname", "", "",
"<META NAME=\"Description\" CONTENT=\"".stripslashes(strip_tags($site->summary))."\">",
- true, update_course_icon($site->id));
+ true, $headerbutton);
?>

0 comments on commit a325bd2

Please sign in to comment.