From 12dda96c6e42a0c0304efed677abe8a25996e24e Mon Sep 17 00:00:00 2001 From: "Jack D. Pond" Date: Wed, 13 Oct 2010 18:45:43 +0000 Subject: [PATCH] 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. --- includes/Linker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1