From e665eb1b53625dffc4a0cce3fca64269095ea703 Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Sun, 25 Jun 2006 21:09:51 +0000 Subject: [PATCH] Adding the language code parameter to the hook "LanguageGetMagic", to allow localizble extensions magic words. --- RELEASE-NOTES | 3 ++- languages/Language.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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 -- 2.20.1