From: Rob Church Date: Sat, 29 Apr 2006 17:05:13 +0000 (+0000) Subject: Whoops, capitalisation matters. Capitalise all instances of mReturnTo like so, so... X-Git-Tag: 1.31.0-rc.0~57335 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=cfa7981e34e22bb7e03f32e8c728ebb42763643e;p=lhc%2Fweb%2Fwiklou.git Whoops, capitalisation matters. Capitalise all instances of mReturnTo like so, so it works, and so it's consistent. --- diff --git a/includes/SpecialUserlogin.php b/includes/SpecialUserlogin.php index d6112c828c..caedffbcad 100644 --- a/includes/SpecialUserlogin.php +++ b/includes/SpecialUserlogin.php @@ -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; }