r114337 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114336‎ | r114337 | r114338 >
Date:00:25, 21 March 2012
Author:preilly
Status:ok
Tags:
Comment:
1.19wmf: MFT r114336
Modified paths:
  • /branches/wmf/1.19wmf1/extensions/MobileFrontend/MobileFrontend.body.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.19wmf1/extensions/MobileFrontend/MobileFrontend.body.php
@@ -506,6 +506,7 @@
507507 $this->sendXDeviceVaryHeader();
508508 $this->sendApplicationVersionVaryHeader();
509509 $this->checkUserStatus();
 510+ $this->setDefaultLogo();
510511 $this->checkUserLoggedIn();
511512
512513 if ( self::$title->isSpecial( 'Userlogin' ) && self::$isBetaGroupMember ) {
@@ -1211,11 +1212,9 @@
12121213 if ( self::$isBetaGroupMember ) {
12131214 $this->getSite( $site, $lang );
12141215 if ( is_array( $wgMFCustomLogos ) && isset( $wgMFCustomLogos['site'] ) ) {
1215 - foreach ( $wgMFCustomLogos as $wgMFCustomLogo ) {
1216 - if ( isset( $wgMFCustomLogo['site'] ) && $site == $wgMFCustomLogo['site'] ) {
1217 - if ( isset( $wgMFCustomLogo['logo'] ) ) {
1218 - $wgMobileFrontendLogo = $wgMFCustomLogo['logo'];
1219 - }
 1216+ if ( isset( $wgMFCustomLogos['site'] ) && $site == $wgMFCustomLogos['site'] ) {
 1217+ if ( isset( $wgMFCustomLogos['logo'] ) ) {
 1218+ $wgMobileFrontendLogo = $wgMFCustomLogos['logo'];
12201219 }
12211220 }
12221221 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r114336fix beta logopreilly00:24, 21 March 2012

Status & tagging log