Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

More accessible log in button up top

  • Loading branch information...
commit a325bd2bf62c09672f2bd55e31a9b6f4067ffa28 1 parent b1a1b00
martin authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 index.php
View
7 index.php
@@ -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);
?>
Please sign in to comment.
Something went wrong with that request. Please try again.