From: Jack D. Pond Date: Wed, 13 Oct 2010 18:45:43 +0000 (+0000) Subject: Added $lang parameter to DoEditSectionLink hook. Allows extensions that add or modif... X-Git-Tag: 1.31.0-rc.0~34523 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=12dda96c6e42a0c0304efed677abe8a25996e24e;p=lhc%2Fweb%2Fwiklou.git Added $lang parameter to DoEditSectionLink hook. Allows extensions that add or modify links to use wfMsgExt to build those links consistent with parent function doEditSectionLink. --- diff --git a/includes/Linker.php b/includes/Linker.php index e07f5a1291..76ecf79d01 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -1410,7 +1410,7 @@ class Linker { $result = wfMsgExt( 'editsection-brackets', array( 'escape', 'replaceafter', 'language' => $lang ), $link ); $result = "$result"; - wfRunHooks( 'DoEditSectionLink', array( $this, $nt, $section, $tooltip, &$result ) ); + wfRunHooks( 'DoEditSectionLink', array( $this, $nt, $section, $tooltip, &$result , $lang) ); return $result; }