From c5c80b331878a77534e5f4f03e945c529e2a8ac9 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 28 May 2004 21:20:51 +0000 Subject: [PATCH] If local language's magicwords list is incomplete, try fetching it from the English one --- languages/Language.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/languages/Language.php b/languages/Language.php index 82adf4431c..90c6ec1482 100644 --- 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 ); -- 2.20.1