]> git.mjollnir.org Git - moodle.git/commitdiff
Make the links more robust (index.php)
authormoodler <moodler>
Wed, 5 Apr 2006 03:02:57 +0000 (03:02 +0000)
committermoodler <moodler>
Wed, 5 Apr 2006 03:02:57 +0000 (03:02 +0000)
login/forgot_password.php

index 920c6b80f7e18c7ce064c496dff10c766a7574cb..835677db5bffd700ca8a6b2fb1d728779cb3e974 100644 (file)
@@ -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 {