From: martin Date: Sun, 22 Sep 2002 05:33:54 +0000 (+0000) Subject: When redirecting to admin page go direct to index.php just in case X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=88491cacbadbc85f5e6d0d411aab491901583b1f;p=moodle.git When redirecting to admin page go direct to index.php just in case DirectoryIndex hasn't been fixed yet. --- diff --git a/index.php b/index.php index 5372d36d37..ca286b26f5 100644 --- a/index.php +++ b/index.php @@ -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 {