From a7b9e8bc9fff42ff352c61641be11c9f9f3a0cd1 Mon Sep 17 00:00:00 2001 From: martin Date: Sun, 15 Sep 2002 06:06:32 +0000 Subject: [PATCH] Fixes to point directly to index.php wherever it was assumed. This wasn't a problem on most servers, but was causing some problems on IIS servers --- course/enrol.html | 2 +- lib/moodlelib.php | 8 ++++---- login/index_form.html | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/course/enrol.html b/course/enrol.html index 9ff1ac24b0b..a9e1c74dd1f 100644 --- a/course/enrol.html +++ b/course/enrol.html @@ -30,7 +30,7 @@ -
">
+
">
diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 50c4c90e55a..c2084e309cc 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -31,7 +31,7 @@ function print_header ($title="", $heading="", $navigation="", $focus="", $meta= if (isset($USER->id)) { $button = "wwwroot/login/logout.php\">".get_string("logout").""; } else { - $button = "wwwroot/login/\">".get_string("login").""; + $button = "wwwroot/login/index.php\">".get_string("login").""; } } @@ -76,7 +76,7 @@ function print_footer ($course=NULL) { " (wwwroot/login/logout.php\">".get_string("logout").")"; } else { $loggedinas = get_string("loggedinnot", "moodle"). - " (wwwroot/login/\">".get_string("login").")"; + " (wwwroot/login/index.php\">".get_string("login").")"; } include ("$CFG->dirroot/theme/$CFG->theme/footer.html"); @@ -971,9 +971,9 @@ function require_login($courseid=0) { $USER = NULL; save_session("USER"); if ($PHPSESSID) { // Cookies not enabled. - redirect("$CFG->wwwroot/login/?PHPSESSID=$PHPSESSID"); + redirect("$CFG->wwwroot/login/index.php?PHPSESSID=$PHPSESSID"); } else { - redirect("$CFG->wwwroot/login/"); + redirect("$CFG->wwwroot/login/index.php"); } die; } diff --git a/login/index_form.html b/login/index_form.html index e8e5e8591ac..51f2f28c8f4 100644 --- a/login/index_form.html +++ b/login/index_form.html @@ -15,7 +15,7 @@ ()

-
+
@@ -43,7 +43,7 @@

:

- + ">