From 88491cacbadbc85f5e6d0d411aab491901583b1f Mon Sep 17 00:00:00 2001 From: martin Date: Sun, 22 Sep 2002 05:33:54 +0000 Subject: [PATCH] When redirecting to admin page go direct to index.php just in case DirectoryIndex hasn't been fixed yet. --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.39.5