From: Rotem Liss Date: Sun, 25 Jun 2006 21:09:51 +0000 (+0000) Subject: Adding the language code parameter to the hook "LanguageGetMagic", to allow localizbl... X-Git-Tag: 1.31.0-rc.0~56596 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=e665eb1b53625dffc4a0cce3fca64269095ea703;p=lhc%2Fweb%2Fwiklou.git Adding the language code parameter to the hook "LanguageGetMagic", to allow localizble extensions magic words. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 015849bce2..848ed58681 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -564,7 +564,8 @@ Some default configuration options have changed: * (bug 6314) Add user tool links on page histories * Fix display of file-type icons in galleries when $wgIgnoreImageErrors is off * (bug 6438) Update to Indonesian translation (id) #23 -* Adding the hooks "AddMagicWordsXX" to allow addition of localized magic words. +* Adding the language code parameter to the hook "LanguageGetMagic", to allow + localizble extensions magic words. == Compatibility == diff --git a/languages/Language.php b/languages/Language.php index 85a6bce755..c528066861 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -879,7 +879,7 @@ class Language { function getMagic( &$mw ) { $raw = $this->getMagicWords(); - wfRunHooks( 'LanguageGetMagic', array( &$raw ) ); + wfRunHooks( 'LanguageGetMagic', array( &$raw, $this->getCode() ) ); if( !isset( $raw[$mw->mId] ) ) { # Fall back to English if local list is incomplete