Whoops, capitalisation matters. Capitalise all instances of mReturnTo like so, so...
authorRob Church <robchurch@users.mediawiki.org>
Sat, 29 Apr 2006 17:05:13 +0000 (17:05 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sat, 29 Apr 2006 17:05:13 +0000 (17:05 +0000)
includes/SpecialUserlogin.php

index d6112c8..caedffb 100644 (file)
@@ -25,7 +25,7 @@ function wfSpecialUserlogin() {
  * @subpackage SpecialPage
  */
 class LoginForm {
-       var $mName, $mPassword, $mRetype, $mReturnto, $mCookieCheck, $mPosted;
+       var $mName, $mPassword, $mRetype, $mReturnTo, $mCookieCheck, $mPosted;
        var $mAction, $mCreateaccount, $mCreateaccountMail, $mMailmypassword;
        var $mLoginattempt, $mRemember, $mEmail, $mDomain;
 
@@ -42,7 +42,7 @@ class LoginForm {
                $this->mPassword = $request->getText( 'wpPassword' );
                $this->mRetype = $request->getText( 'wpRetype' );
                $this->mDomain = $request->getText( 'wpDomain' );
-               $this->mReturnto = $request->getVal( 'returnto' );
+               $this->mReturnTo = $request->getVal( 'returnto' );
                $this->mCookieCheck = $request->getVal( 'wpCookieCheck' );
                $this->mPosted = $request->wasPosted();
                $this->mCreateaccount = $request->getCheck( 'wpCreateaccount' );
@@ -71,8 +71,8 @@ class LoginForm {
                $wgAuth->setDomain( $this->mDomain );
 
                # When switching accounts, it sucks to get automatically logged out
-               if( $this->mReturnto == $wgLang->specialPage( 'Userlogout' ) ) {
-                       $this->mReturnto = '';
+               if( $this->mReturnTo == $wgLang->specialPage( 'Userlogout' ) ) {
+                       $this->mReturnTo = '';
                }
        }
 
@@ -421,7 +421,7 @@ class LoginForm {
                $wgOut->setRobotpolicy( 'noindex,nofollow' );
                $wgOut->setArticleRelated( false );
                $wgOut->addWikiText( $msg );
-               if ( !empty( $this->mReturnto ) ) {
+               if ( !empty( $this->mReturnTo ) ) {
                        $wgOut->returnToMain( $auto, $this->mReturnTo );
                } else {
                        $wgOut->returnToMain( $auto );
@@ -475,8 +475,8 @@ class LoginForm {
                        $linkmsg = 'nologin';
                }
 
-               if ( !empty( $this->mReturnto ) ) {
-                       $returnto = '&returnto=' . wfUrlencode( $this->mReturnto );
+               if ( !empty( $this->mReturnTo ) ) {
+                       $returnto = '&returnto=' . wfUrlencode( $this->mReturnTo );
                        $q .= $returnto;
                        $linkq .= $returnto;
                }