Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -402,6 +402,7 @@ |
403 | 403 | $skin: Skin rendering the UI |
404 | 404 | $title: Title being linked to |
405 | 405 | $section: Section to link to |
| 406 | +$hint: Anchor title/tooltip attributes |
406 | 407 | $link: Default link |
407 | 408 | $result: Result (alter this to override the generated links) |
408 | 409 | |
Index: trunk/phase3/includes/Linker.php |
— | — | @@ -1079,7 +1079,7 @@ |
1080 | 1080 | $hint = ( $hint=='' ) ? '' : ' title="' . wfMsgHtml( 'editsectionhint', htmlspecialchars( $hint ) ) . '"'; |
1081 | 1081 | $url = $this->makeKnownLinkObj( $nt, wfMsg('editsection'), 'action=edit'.$editurl, '', '', '', $hint ); |
1082 | 1082 | $result = null; |
1083 | | - wfRunHooks( 'EditSectionLink', array( &$this, $nt, $section, $url, &$result ) ); |
| 1083 | + wfRunHooks( 'EditSectionLink', array( &$this, $nt, $section, $hint, $url, &$result ) ); |
1084 | 1084 | return is_null( $result ) |
1085 | 1085 | ? "<span class=\"editsection\">[{$url}]</span>" |
1086 | 1086 | : "<span class=\"editsection\">[{$result}]</span>"; |