From ff56ef8158550d50b89ff5c47fe923b15c65ed9d Mon Sep 17 00:00:00 2001 From: Rob Church Date: Tue, 5 Jun 2007 12:54:13 +0000 Subject: [PATCH] Add missing $hint to 'EditSectionLink' hook call --- docs/hooks.txt | 1 + includes/Linker.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/hooks.txt b/docs/hooks.txt index 9ea390dc8d..af4a5852df 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -402,6 +402,7 @@ $result: Result (alter this to override the generated links) $skin: Skin rendering the UI $title: Title being linked to $section: Section to link to +$hint: Anchor title/tooltip attributes $link: Default link $result: Result (alter this to override the generated links) diff --git a/includes/Linker.php b/includes/Linker.php index 09695661e8..0020091931 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -1079,7 +1079,7 @@ class Linker { $hint = ( $hint=='' ) ? '' : ' title="' . wfMsgHtml( 'editsectionhint', htmlspecialchars( $hint ) ) . '"'; $url = $this->makeKnownLinkObj( $nt, wfMsg('editsection'), 'action=edit'.$editurl, '', '', '', $hint ); $result = null; - wfRunHooks( 'EditSectionLink', array( &$this, $nt, $section, $url, &$result ) ); + wfRunHooks( 'EditSectionLink', array( &$this, $nt, $section, $hint, $url, &$result ) ); return is_null( $result ) ? "[{$url}]" : "[{$result}]"; -- 2.20.1