r25572 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25571‎ | r25572 | r25573 >
Date:00:21, 6 September 2007
Author:tstarling
Status:old
Tags:
Comment:
addMagicWordsByLang() -- always include english in the fallback chain
Modified paths:
  • /trunk/phase3/languages/Language.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/Language.php
@@ -1163,6 +1163,9 @@
11641164 $fallbackChain[] = $code;
11651165 $code = self::getFallbackFor( $code );
11661166 }
 1167+ if ( !in_array( 'en', $fallbackChain ) ) {
 1168+ $fallbackChain[] = 'en';
 1169+ }
11671170 $fallbackChain = array_reverse( $fallbackChain );
11681171 foreach ( $fallbackChain as $code ) {
11691172 if ( isset( $newWords[$code] ) ) {

Follow-up revisions

RevisionCommit summaryAuthorDate
r25607Merged revisions 25530-25606 via svnmerge from...david06:11, 7 September 2007

Status & tagging log