Added $lang parameter to DoEditSectionLink hook. Allows extensions that add or modif...
authorJack D. Pond <jdpond@users.mediawiki.org>
Wed, 13 Oct 2010 18:45:43 +0000 (18:45 +0000)
committerJack D. Pond <jdpond@users.mediawiki.org>
Wed, 13 Oct 2010 18:45:43 +0000 (18:45 +0000)
includes/Linker.php

index e07f5a1..76ecf79 100644 (file)
@@ -1410,7 +1410,7 @@ class Linker {
                $result = wfMsgExt( 'editsection-brackets', array( 'escape', 'replaceafter', 'language' => $lang ), $link );
                $result = "<span class=\"editsection\">$result</span>";
 
-               wfRunHooks( 'DoEditSectionLink', array( $this, $nt, $section, $tooltip, &$result ) );
+               wfRunHooks( 'DoEditSectionLink', array( $this, $nt, $section, $tooltip, &$result , $lang) );
                return $result;
        }