r87701 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87700‎ | r87701 | r87702 >
Date:02:55, 9 May 2011
Author:dantman
Status:ok
Tags:
Comment:
Followup r87668, update hooks.txt
Modified paths:
  • /trunk/phase3/docs/hooks.txt (modified) (history)

Diff [purge]

Index: trunk/phase3/docs/hooks.txt
@@ -1040,7 +1040,7 @@
10411041 expected meanings of parameters.
10421042 $skin: the Skin object
10431043 $target: the Title that the link is pointing to
1044 -&$text: the contents that the <a> tag should have (raw HTML); null means "de-
 1044+&$html: the contents that the <a> tag should have (raw HTML); null means "de-
10451045 fault"
10461046 &$customAttribs: the HTML attributes that the <a> tag should have, in associa-
10471047 tive array form, with keys and values unescaped. Should be merged with de-
@@ -1052,13 +1052,13 @@
10531053
10541054 'LinkEnd': Used when generating internal and interwiki links in Linker::link(),
10551055 just before the function returns a value. If you return true, an <a> element
1056 -with HTML attributes $attribs and contents $text will be returned. If you re-
 1056+with HTML attributes $attribs and contents $html will be returned. If you re-
10571057 turn false, $ret will be returned.
10581058 $skin: the Skin object
10591059 $target: the Title object that the link is pointing to
10601060 $options: the options. Will always include either 'known' or 'broken', and may
10611061 include 'noclasses'.
1062 -&$text: the final (raw HTML) contents of the <a> tag, after processing.
 1062+&$html: the final (raw HTML) contents of the <a> tag, after processing.
10631063 &$attribs: the final HTML attributes of the <a> tag, after processing, in asso-
10641064 ciative array form.
10651065 &$ret: the value to return if your hook returns false.

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r87668Change $text to $html. This has been bothering me for awhile. It's stupid, co...dantman00:10, 8 May 2011

Status & tagging log