r109761 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109760‎ | r109761 | r109762 >
Date:21:36, 22 January 2012
Author:preilly
Status:ok
Tags:
Comment:
1.18wmf: MFT r109760
Modified paths:
  • /branches/wmf/1.18wmf1/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/extensions/MobileFrontend/MobileFrontend.php
@@ -493,7 +493,7 @@
494494 * @return bool
495495 */
496496 public function beforePageDisplayHTML( &$out, &$text ) {
497 - global $wgContLang, $wgRequest, $wgMemc, $wgUser, $wgConf;
 497+ global $wgContLang, $wgRequest, $wgMemc, $wgUser;
498498 wfProfileIn( __METHOD__ );
499499
500500 // Note: The WebRequest Class calls are made in this block because
@@ -679,14 +679,6 @@
680680 $this->checkUserStatus();
681681 $this->checkUserLoggedIn();
682682
683 - $DB = wfGetDB( DB_MASTER );
684 - $DBName = $DB->getDBname();
685 -
686 - list( $site, $lang ) = $wgConf->siteFromDB( $DBName );
687 - if ( $site == 'wikipedia' && self::$code === 'en' ) {
688 - self::$displayNoticeId = 2;
689 - }
690 -
691683 if ( self::$title->isSpecial( 'Userlogin' ) && self::$isBetaGroupMember ) {
692684 self::$wsLoginToken = $wgRequest->getSessionData( 'wsLoginToken' );
693685 $q = array( 'action' => 'submitlogin', 'type' => 'login' );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r109760remove SOPA bannerpreilly21:36, 22 January 2012

Status & tagging log