r109879 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109878‎ | r109879 | r109880 >
Date:00:23, 24 January 2012
Author:preilly
Status:ok
Tags:
Comment:
stylize.php
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/MobileFrontend.php
@@ -250,7 +250,7 @@
251251 * @param $lang string
252252 * @return string
253253 */
254 - public function getSite( &$site, &$lang ){
 254+ public function getSite( &$site, &$lang ) {
255255 global $wgConf;
256256 wfProfileIn( __METHOD__ );
257257 $DB = wfGetDB( DB_MASTER );
@@ -1610,11 +1610,11 @@
16111611 }
16121612 }
16131613
1614 - if ( !empty( self::$displayNoticeId ) ) {
1615 - if ( intval( self::$displayNoticeId ) === 2 ) {
1616 - $sopaNoticeTemplate = new SopaNoticeTemplate();
1617 - $sopaNoticeTemplate->set( 'messages', self::$messages );
1618 - $noticeHtml = $sopaNoticeTemplate->getHTML();
 1614+ if ( !empty( self::$displayNoticeId ) ) {
 1615+ if ( intval( self::$displayNoticeId ) === 2 ) {
 1616+ $sopaNoticeTemplate = new SopaNoticeTemplate();
 1617+ $sopaNoticeTemplate->set( 'messages', self::$messages );
 1618+ $noticeHtml = $sopaNoticeTemplate->getHTML();
16191619 }
16201620 }
16211621
@@ -1759,7 +1759,7 @@
17601760 if ( self::$isBetaGroupMember ) {
17611761 $this->getSite( $site, $lang );
17621762 if ( is_array( $wgMFCustomLogos ) && isset( $wgMFCustomLogos[0]['site'] ) ) {
1763 - foreach( $wgMFCustomLogos as $wgMFCustomLogo ) {
 1763+ foreach ( $wgMFCustomLogos as $wgMFCustomLogo ) {
17641764 if ( isset( $wgMFCustomLogo['site'] ) && $site == $wgMFCustomLogo['site'] ) {
17651765 if ( isset( $wgMFCustomLogo['logo'] ) ) {
17661766 $wgMobileFrontendLogo = $wgMFCustomLogo['logo'];

Status & tagging log