From 8820365c74e5131344d0da8a53e94042f4eb5d00 Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 5 Apr 2006 03:02:57 +0000 Subject: [PATCH] Make the links more robust (index.php) --- login/forgot_password.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/login/forgot_password.php b/login/forgot_password.php index 920c6b80f7..835677db5b 100644 --- a/login/forgot_password.php +++ b/login/forgot_password.php @@ -51,7 +51,7 @@ $page = ''; // page to display // if you are logged in then you shouldn't be here! if (isloggedin()) { - redirect( $CFG->wwwroot, $txt->loginalready, 5 ); + redirect( $CFG->wwwroot.'/index.php', $txt->loginalready, 5 ); } // changepassword link replaced by individual auth setting @@ -219,7 +219,7 @@ if (count($errors)) { if ($page=='emailconfirm') { // Confirm (internal method) email sent $txt->emailpasswordconfirmsent = get_string( 'emailpasswordconfirmsent','',$user->email ); - notice( $txt->emailpasswordconfirmsent,"$CFG->wwwroot/" ); + notice( $txt->emailpasswordconfirmsent,$CFG->wwwroot.'/index.php'); } elseif ($page=='external') { @@ -228,7 +228,7 @@ elseif ($page=='external') { // only print continue button if it makes sense if ($continue) { - print_continue( "{$CFG->wwwroot}/" ); + print_continue($CFG->wwwroot.'/index.php'); } } @@ -239,7 +239,7 @@ elseif ($page=='emailsent') { elseif ($page=='duplicateemail') { // email address appears more than once - notice( $txt->forgottenduplicate, "{$CFG->wwwroot}/" ); + notice( $txt->forgottenduplicate, $CFG->wwwroot.'/index.php'); } else { -- 2.39.5