dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b26a03f
)
If local language's magicwords list is incomplete, try fetching it from the English one
author
Brion Vibber
<brion@users.mediawiki.org>
Fri, 28 May 2004 21:20:51 +0000
(21:20 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Fri, 28 May 2004 21:20:51 +0000
(21:20 +0000)
languages/Language.php
patch
|
blob
|
history
diff --git
a/languages/Language.php
b/languages/Language.php
index
82adf44
..
90c6ec1
100644
(file)
--- a/
languages/Language.php
+++ b/
languages/Language.php
@@
-1877,6
+1877,10
@@
class Language {
function getMagic( &$mw )
{
$raw =& $this->getMagicWords();
+ if( !isset( $raw[$mw->mld] ) ) {
+ # Fall back to English if local list is incomplete
+ $raw =& Language::getMagicWords();
+ }
$rawEntry = $raw[$mw->mId];
$mw->mCaseSensitive = $rawEntry[0];
$mw->mSynonyms = array_slice( $rawEntry, 1 );