* (bug 14558) New system message (emailuserfooter) is now added to the footer of
e-mails sent with Special:Emailuser
* Add support for Hijri (Islamic) calendar
+* Add a new hook LinkerMakeExternalImage to allow extensions to modify the output of
+ external (hotlinked) images.
=== Bug fixes in 1.13 ===
$specialPageAliases: associative array of magic words synonyms
$lang: laguage code (string)
+'LinkerMakeExternalImage': At the end of Linker::makeExternalImage() just before the return
+&$url: the image url
+&alt: the image's alt text
+&$img: the new image HTML (if returning false)
+
'LinkerMakeExternalLink': At the end of Linker::makeExternalLink() just before the return
&$url: the link url
&$text: the link text
if ( '' == $alt ) {
$alt = $this->fnamePart( $url );
}
+ $img = '';
+ $success = wfRunHooks('LinkerMakeExternalImage', array( &$url, &$alt, &$img ) );
+ if(!$success) {
+ wfDebug("Hook LinkerMakeExternalImage changed the output of external image with url {$url} and alt text {$alt} to {$img}", true);
+ return $img;
+ }
$s = '<img src="'.$url.'" alt="'.$alt.'" />';
return $s;
}