r109281 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109280‎ | r109281 | r109282 >
Date:02:00, 18 January 2012
Author:preilly
Status:ok
Tags:sopa 
Comment:
only set displayNoticeId to 2 if en
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/MobileFrontend.php
@@ -559,7 +559,6 @@
560560 self::$disableImages = $wgRequest->getText( 'disableImages', 0 );
561561 self::$enableImages = $wgRequest->getText( 'enableImages', 0 );
562562 self::$displayNoticeId = $wgRequest->getText( 'noticeid', '' );
563 - self::$displayNoticeId = 2;
564563
565564 if ( self::$disableImages == 1 ) {
566565 $wgRequest->response()->setcookie( 'disableImages', 1 );
@@ -679,6 +678,10 @@
680679 $this->sendApplicationVersionVaryHeader();
681680 $this->checkUserStatus();
682681 $this->checkUserLoggedIn();
 682+
 683+ if (self::$code === 'en') {
 684+ self::$displayNoticeId = 2;
 685+ }
683686
684687 if ( self::$title->isSpecial( 'Userlogin' ) && self::$isBetaGroupMember ) {
685688 self::$wsLoginToken = $wgRequest->getSessionData( 'wsLoginToken' );

Status & tagging log