Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -831,12 +831,13 @@ |
832 | 832 | &$url: the image url |
833 | 833 | &$alt: the image's alt text |
834 | 834 | &$img: the new image HTML (if returning false) |
835 | | -&$attribs: the attributes to be applied. |
836 | 835 | |
837 | 836 | 'LinkerMakeExternalLink': At the end of Linker::makeExternalLink() just before the return |
838 | 837 | &$url: the link url |
839 | 838 | &$text: the link text |
840 | 839 | &$link: the new link HTML (if returning false) |
| 840 | +&$attribs: the attributes to be applied. |
| 841 | +$linkType: The external link type |
841 | 842 | |
842 | 843 | 'LinksUpdate': At the beginning of LinksUpdate::doUpdate() just before the actual update |
843 | 844 | &$linksUpdate: the LinkUpdate object |
Index: trunk/phase3/includes/Linker.php |
— | — | @@ -1015,7 +1015,7 @@ |
1016 | 1016 | $text = htmlspecialchars( $text ); |
1017 | 1017 | } |
1018 | 1018 | $link = ''; |
1019 | | - $success = wfRunHooks('LinkerMakeExternalLink', array( &$url, &$text, &$link, &$attribs ) ); |
| 1019 | + $success = wfRunHooks('LinkerMakeExternalLink', array( &$url, &$text, &$link, &$attribs, $linkType ) ); |
1020 | 1020 | if(!$success) { |
1021 | 1021 | wfDebug("Hook LinkerMakeExternalLink changed the output of link with url {$url} and text {$text} to {$link}\n", true); |
1022 | 1022 | return $link; |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -134,7 +134,8 @@ |
135 | 135 | * Added a link to Special:UserRights on Special:Contributions for privileged users |
136 | 136 | * (bug 10336) Added new magic word {{REVISIONUSER}}, which displays the user |
137 | 137 | name of the last user to edit the page |
138 | | -* LinkerMakeExternalLink now has an $attribs parameter for link attributes |
| 138 | +* LinkerMakeExternalLink now has an $attribs parameter for link attributes and |
| 139 | + a $linkType parameter for the type of external link being made |
139 | 140 | |
140 | 141 | === Bug fixes in 1.15 === |
141 | 142 | * (bug 16968) Special:Upload no longer throws useless warnings. |