Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -250,7 +250,7 @@ |
251 | 251 | * @param $lang string |
252 | 252 | * @return string |
253 | 253 | */ |
254 | | - public function getSite( &$site, &$lang ){ |
| 254 | + public function getSite( &$site, &$lang ) { |
255 | 255 | global $wgConf; |
256 | 256 | wfProfileIn( __METHOD__ ); |
257 | 257 | $DB = wfGetDB( DB_MASTER ); |
— | — | @@ -1610,11 +1610,11 @@ |
1611 | 1611 | } |
1612 | 1612 | } |
1613 | 1613 | |
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(); |
1619 | 1619 | } |
1620 | 1620 | } |
1621 | 1621 | |
— | — | @@ -1759,7 +1759,7 @@ |
1760 | 1760 | if ( self::$isBetaGroupMember ) { |
1761 | 1761 | $this->getSite( $site, $lang ); |
1762 | 1762 | if ( is_array( $wgMFCustomLogos ) && isset( $wgMFCustomLogos[0]['site'] ) ) { |
1763 | | - foreach( $wgMFCustomLogos as $wgMFCustomLogo ) { |
| 1763 | + foreach ( $wgMFCustomLogos as $wgMFCustomLogo ) { |
1764 | 1764 | if ( isset( $wgMFCustomLogo['site'] ) && $site == $wgMFCustomLogo['site'] ) { |
1765 | 1765 | if ( isset( $wgMFCustomLogo['logo'] ) ) { |
1766 | 1766 | $wgMobileFrontendLogo = $wgMFCustomLogo['logo']; |