* Move docs from r48223 to the right place.
* Added a link to Special:UserRights on Special:Contributions for privileged users
* (bug 10336) Added new magic word {{REVISIONUSER}}, which displays the user
name of the last user to edit the page
-* LinkerMakeExternalLink now has an $attribs parameter for link attributes
+* LinkerMakeExternalLink now has an $attribs parameter for link attributes and
+ a $linkType parameter for the type of external link being made
=== Bug fixes in 1.15 ===
* (bug 16968) Special:Upload no longer throws useless warnings.
&$url: the image url
&$alt: the image's alt text
&$img: the new image HTML (if returning false)
-&$attribs: the attributes to be applied.
'LinkerMakeExternalLink': At the end of Linker::makeExternalLink() just before the return
&$url: the link url
&$text: the link text
&$link: the new link HTML (if returning false)
+&$attribs: the attributes to be applied.
+$linkType: The external link type
'LinksUpdate': At the beginning of LinksUpdate::doUpdate() just before the actual update
&$linksUpdate: the LinkUpdate object
$text = htmlspecialchars( $text );
}
$link = '';
- $success = wfRunHooks('LinkerMakeExternalLink', array( &$url, &$text, &$link, &$attribs ) );
+ $success = wfRunHooks('LinkerMakeExternalLink', array( &$url, &$text, &$link, &$attribs, $linkType ) );
if(!$success) {
wfDebug("Hook LinkerMakeExternalLink changed the output of link with url {$url} and text {$text} to {$link}\n", true);
return $link;