r109760 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109759‎ | r109760 | r109761 >
Date:21:36, 22 January 2012
Author:preilly
Status:ok
Tags:
Comment:
remove SOPA banner
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: trunk/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' );

Follow-up revisions

RevisionCommit summaryAuthorDate
r1097611.18wmf: MFT r109760preilly21:36, 22 January 2012

Status & tagging log