Index: branches/wmf/1.19wmf1/extensions/MobileFrontend/MobileFrontend.body.php |
— | — | @@ -506,6 +506,7 @@ |
507 | 507 | $this->sendXDeviceVaryHeader(); |
508 | 508 | $this->sendApplicationVersionVaryHeader(); |
509 | 509 | $this->checkUserStatus(); |
| 510 | + $this->setDefaultLogo(); |
510 | 511 | $this->checkUserLoggedIn(); |
511 | 512 | |
512 | 513 | if ( self::$title->isSpecial( 'Userlogin' ) && self::$isBetaGroupMember ) { |
— | — | @@ -1211,11 +1212,9 @@ |
1212 | 1213 | if ( self::$isBetaGroupMember ) { |
1213 | 1214 | $this->getSite( $site, $lang ); |
1214 | 1215 | if ( is_array( $wgMFCustomLogos ) && isset( $wgMFCustomLogos['site'] ) ) { |
1215 | | - foreach ( $wgMFCustomLogos as $wgMFCustomLogo ) { |
1216 | | - if ( isset( $wgMFCustomLogo['site'] ) && $site == $wgMFCustomLogo['site'] ) { |
1217 | | - if ( isset( $wgMFCustomLogo['logo'] ) ) { |
1218 | | - $wgMobileFrontendLogo = $wgMFCustomLogo['logo']; |
1219 | | - } |
| 1216 | + if ( isset( $wgMFCustomLogos['site'] ) && $site == $wgMFCustomLogos['site'] ) { |
| 1217 | + if ( isset( $wgMFCustomLogos['logo'] ) ) { |
| 1218 | + $wgMobileFrontendLogo = $wgMFCustomLogos['logo']; |
1220 | 1219 | } |
1221 | 1220 | } |
1222 | 1221 | } |