Index: branches/wmf/1.18wmf1/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -1255,11 +1255,17 @@ |
1256 | 1256 | * Sets up the default logo image used in mobile view if none is set |
1257 | 1257 | */ |
1258 | 1258 | public function setDefaultLogo() { |
1259 | | - global $wgMobileFrontendLogo, $wgExtensionAssetsPath; |
| 1259 | + global $wgMobileFrontendLogo, $wgExtensionAssetsPath, $wgDBname, $wgConf; |
1260 | 1260 | wfProfileIn( __METHOD__ ); |
1261 | 1261 | if ( $wgMobileFrontendLogo === false ) { |
1262 | 1262 | $wgMobileFrontendLogo = $wgExtensionAssetsPath . '/MobileFrontend/stylesheets/images/mw.png'; |
1263 | 1263 | } |
| 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 | + } |
1264 | 1270 | wfProfileOut( __METHOD__ ); |
1265 | 1271 | } |
1266 | 1272 | } |