Permalink
Browse files

When redirecting to admin page go direct to index.php just in case

DirectoryIndex hasn't been fixed yet.
  • Loading branch information...
1 parent bbe3efd commit 88491cacbadbc85f5e6d0d411aab491901583b1f martin committed Sep 22, 2002
Showing with 2 additions and 2 deletions.
  1. +2 −2 index.php
View
@@ -7,12 +7,12 @@
include("mod/forum/lib.php");
if (! $site = get_site()) {
- redirect("$CFG->wwwroot/admin/");
+ redirect("$CFG->wwwroot/admin/index.php");
}
if (isadmin()) {
if (moodle_needs_upgrading()) {
- redirect("$CFG->wwwroot/admin/");
+ redirect("$CFG->wwwroot/admin/index.php");
}
$headerbutton = update_course_icon($site->id);
} else {

0 comments on commit 88491ca

Please sign in to comment.