r101090 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101089‎ | r101090 | r101091 >
Date:23:35, 27 October 2011
Author:preilly
Status:ok
Tags:
Comment:
Modified paths:
  • /branches/wmf/1.18wmf1/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/extensions/MobileFrontend/MobileFrontend.php
@@ -1255,11 +1255,17 @@
12561256 * Sets up the default logo image used in mobile view if none is set
12571257 */
12581258 public function setDefaultLogo() {
1259 - global $wgMobileFrontendLogo, $wgExtensionAssetsPath;
 1259+ global $wgMobileFrontendLogo, $wgExtensionAssetsPath, $wgDBname, $wgConf;
12601260 wfProfileIn( __METHOD__ );
12611261 if ( $wgMobileFrontendLogo === false ) {
12621262 $wgMobileFrontendLogo = $wgExtensionAssetsPath . '/MobileFrontend/stylesheets/images/mw.png';
12631263 }
 1264+ if ( self::$isBetaGroupMember ) {
 1265+ list( $site, $lang ) = $wgConf->siteFromDB( $wgDBname );
 1266+ if ( $site == 'wikipedia' ) {
 1267+ $wgMobileFrontendLogo = '//upload.wikimedia.org/wikipedia/commons/1/16/W_logo_for_beta_test_of_Mobile_Frontend.gif';
 1268+ }
 1269+ }
12641270 wfProfileOut( __METHOD__ );
12651271 }
12661272 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r101089add beta logo to beta userspreilly23:35, 27 October 2011

Status & tagging log