Index: branches/wmf/1.18wmf1/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -337,15 +337,13 @@ |
338 | 338 | |
339 | 339 | $languageUrls = array(); |
340 | 340 | |
341 | | - if ( $wgLanguageCode == 'en' ) { |
342 | | - $languageUrls[] = array( |
343 | | - 'href' => self::$currentURL, |
344 | | - 'text' => self::$htmlTitle, |
345 | | - 'language' => $wgContLang->getLanguageName( $wgLanguageCode ), |
346 | | - 'class' => 'interwiki-' . $wgLanguageCode, |
347 | | - 'lang' => $wgLanguageCode, |
348 | | - ); |
349 | | - } |
| 341 | + $languageUrls[] = array( |
| 342 | + 'href' => self::$currentURL, |
| 343 | + 'text' => self::$htmlTitle, |
| 344 | + 'language' => $wgContLang->getLanguageName( $wgLanguageCode ), |
| 345 | + 'class' => 'interwiki-' . $wgLanguageCode, |
| 346 | + 'lang' => $wgLanguageCode, |
| 347 | + ); |
350 | 348 | |
351 | 349 | foreach( $wgOut->getLanguageLinks() as $l ) { |
352 | 350 | if ( preg_match( '!^(\w[-\w]*\w):(.+)$!', $l, $m ) ) { |
— | — | @@ -365,7 +363,7 @@ |
366 | 364 | $queryDelimiter = ( !empty( $parsedUrl['query'] ) ) ? '?' : ''; |
367 | 365 | $languageUrl = $parsedUrl['scheme'] . '://' . $parsedUrl['host'] . $parsedUrl['path'] . $queryDelimiter . $parsedUrl['query'] . $fragmentDelimiter . $parsedUrl['fragment']; |
368 | 366 | |
369 | | - if ( substr( $languageUrl, 0, 1 ) == ':') { |
| 367 | + if ( substr( $languageUrl, 0, 1 ) == ':' ) { |
370 | 368 | $languageUrl = substr( $languageUrl, 1 ); |
371 | 369 | } |
372 | 370 | |