r114336 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114335‎ | r114336 | r114337 >
Date:00:24, 21 March 2012
Author:preilly
Status:ok
Tags:
Comment:
fix beta logo
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.body.php (modified) (history)

Diff [purge]

Index: trunk/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 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r1143371.19wmf: MFT r114336preilly00:25, 21 March 2012
r114339Followup r114332, r114336 - updating in MobileFrontend.php to reflect change...awjrichards00:31, 21 March 2012

Status & tagging log