r22756 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22755‎ | r22756 | r22757 >
Date:12:54, 5 June 2007
Author:robchurch
Status:old
Tags:
Comment:
Add missing $hint to 'EditSectionLink' hook call
Modified paths:
  • /trunk/phase3/docs/hooks.txt (modified) (history)
  • /trunk/phase3/includes/Linker.php (modified) (history)

Diff [purge]

Index: trunk/phase3/docs/hooks.txt
@@ -402,6 +402,7 @@
403403 $skin: Skin rendering the UI
404404 $title: Title being linked to
405405 $section: Section to link to
 406+$hint: Anchor title/tooltip attributes
406407 $link: Default link
407408 $result: Result (alter this to override the generated links)
408409
Index: trunk/phase3/includes/Linker.php
@@ -1079,7 +1079,7 @@
10801080 $hint = ( $hint=='' ) ? '' : ' title="' . wfMsgHtml( 'editsectionhint', htmlspecialchars( $hint ) ) . '"';
10811081 $url = $this->makeKnownLinkObj( $nt, wfMsg('editsection'), 'action=edit'.$editurl, '', '', '', $hint );
10821082 $result = null;
1083 - wfRunHooks( 'EditSectionLink', array( &$this, $nt, $section, $url, &$result ) );
 1083+ wfRunHooks( 'EditSectionLink', array( &$this, $nt, $section, $hint, $url, &$result ) );
10841084 return is_null( $result )
10851085 ? "<span class=\"editsection\">[{$url}]</span>"
10861086 : "<span class=\"editsection\">[{$result}]</span>";

Follow-up revisions

RevisionCommit summaryAuthorDate
r22791Merged revisions 22747-22790 via svnmerge from...david09:21, 6 June 2007

Status & tagging log