From: Rob Church Date: Tue, 5 Jun 2007 12:54:13 +0000 (+0000) Subject: Add missing $hint to 'EditSectionLink' hook call X-Git-Tag: 1.31.0-rc.0~52663 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=ff56ef8158550d50b89ff5c47fe923b15c65ed9d;p=lhc%2Fweb%2Fwiklou.git Add missing $hint to 'EditSectionLink' hook call --- 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}]";