r35644 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r35643‎ | r35644 | r35645 >
Date:08:54, 31 May 2008
Author:btongminh
Status:old
Tags:
Comment:
Add wpSkipCookieCheck to allow bots to skip the cookie check
Modified paths:
  • /trunk/phase3/includes/SpecialUserlogin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialUserlogin.php
@@ -36,7 +36,7 @@
3737
3838 var $mName, $mPassword, $mRetype, $mReturnTo, $mCookieCheck, $mPosted;
3939 var $mAction, $mCreateaccount, $mCreateaccountMail, $mMailmypassword;
40 - var $mLoginattempt, $mRemember, $mEmail, $mDomain, $mLanguage;
 40+ var $mLoginattempt, $mRemember, $mEmail, $mDomain, $mLanguage, $mSkipCookieCheck;
4141
4242 /**
4343 * Constructor
@@ -63,6 +63,7 @@
6464 $this->mAction = $request->getVal( 'action' );
6565 $this->mRemember = $request->getCheck( 'wpRemember' );
6666 $this->mLanguage = $request->getText( 'uselang' );
 67+ $this->mSkipCookieCheck = $request->getCheck( 'wpSkipCookieCheck' );
6768
6869 if( $wgEnableEmail ) {
6970 $this->mEmail = $request->getText( 'wpEmail' );
@@ -501,7 +502,7 @@
502503 }
503504 $wgUser->setCookies();
504505
505 - if( $this->hasSessionCookie() ) {
 506+ if( $this->hasSessionCookie() || $this->mSkipCookieCheck ) {
506507 /* Replace the language object to provide user interface in correct
507508 * language immediately on this first page load.
508509 */

Status & tagging log