r101053 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101052‎ | r101053 | r101054 >
Date:21:02, 27 October 2011
Author:preilly
Status:ok
Tags:
Comment:
Modified paths:
  • /branches/wmf/1.18wmf1/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/extensions/MobileFrontend/MobileFrontend.php
@@ -337,15 +337,13 @@
338338
339339 $languageUrls = array();
340340
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+ );
350348
351349 foreach( $wgOut->getLanguageLinks() as $l ) {
352350 if ( preg_match( '!^(\w[-\w]*\w):(.+)$!', $l, $m ) ) {
@@ -365,7 +363,7 @@
366364 $queryDelimiter = ( !empty( $parsedUrl['query'] ) ) ? '?' : '';
367365 $languageUrl = $parsedUrl['scheme'] . '://' . $parsedUrl['host'] . $parsedUrl['path'] . $queryDelimiter . $parsedUrl['query'] . $fragmentDelimiter . $parsedUrl['fragment'];
368366
369 - if ( substr( $languageUrl, 0, 1 ) == ':') {
 367+ if ( substr( $languageUrl, 0, 1 ) == ':' ) {
370368 $languageUrl = substr( $languageUrl, 1 );
371369 }
372370

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r101052fix default language issuepreilly21:01, 27 October 2011

Status & tagging log