Adding the language code parameter to the hook "LanguageGetMagic", to allow localizbl...
authorRotem Liss <rotem@users.mediawiki.org>
Sun, 25 Jun 2006 21:09:51 +0000 (21:09 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Sun, 25 Jun 2006 21:09:51 +0000 (21:09 +0000)
RELEASE-NOTES
languages/Language.php

index 015849b..848ed58 100644 (file)
@@ -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 ==
index 85a6bce..c528066 100644 (file)
@@ -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