r3724 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r3723‎ | r3724 | r3725 >
Date:21:20, 28 May 2004
Author:vibber
Status:old
Tags:
Comment:
If local language's magicwords list is incomplete, try fetching it from the English one
Modified paths:
  • /trunk/phase3/languages/Language.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/Language.php
@@ -1877,6 +1877,10 @@
18781878 function getMagic( &$mw )
18791879 {
18801880 $raw =& $this->getMagicWords();
 1881+ if( !isset( $raw[$mw->mld] ) ) {
 1882+ # Fall back to English if local list is incomplete
 1883+ $raw =& Language::getMagicWords();
 1884+ }
18811885 $rawEntry = $raw[$mw->mId];
18821886 $mw->mCaseSensitive = $rawEntry[0];
18831887 $mw->mSynonyms = array_slice( $rawEntry, 1 );

Status & tagging log