r101089 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101088‎ | r101089 | r101090 >
Date:23:35, 27 October 2011
Author:preilly
Status:ok
Tags:
Comment:
add beta logo to beta users
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

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

Follow-up revisions

RevisionCommit summaryAuthorDate
r101090mft r101089preilly23:35, 27 October 2011

Status & tagging log