edits in the last $wgActiveUserDays days.
* SpecialSearchResults hook now passes results by reference, so they can be
changed by extensions.
-
+* Add a new hook LinkerMakeExternalLink to allow extensions to modify the output of
+ external links.
+
=== Bug fixes in 1.13 ===
* (bug 10677) Add link to the file description page on the shared repository
if( $escape ) {
$text = htmlspecialchars( $text );
}
+ $link = '';
+ $success = wfRunHooks('LinkerMakeExternalLink', array( &$url, &$text, &link ) );
+ if(!$success) {
+ wfDebug("Hook LinkerMakeExternalLink changed the output of link with url {$url} and text {$text} to {$link}", true);
+ return $link;
+ }
return '<a href="'.$url.'"'.$style.'>'.$text.'</a>';
}