return $this->title->escapeLocalURL();
}
+ /**
+ * Return the escapeFullURL of this image
+ * @access public
+ */
+ function getEscapeFullURL()
+ {
+ return $this->title->escapeFullURL();
+ }
+
/**
* Return the URL of an image, provided its name.
*
$alt = str_replace( array('<', '>', '"'), array('<', '>', '"'), $alt );
$u = $nt->escapeLocalURL();
+ $uf = $nt->escapeFullURL();
if ( $url == '' )
{
$s = wfMsg( 'missingimage', $img->getName() );
$s .= "<br>{$alt}<br>{$url}<br>\n";
} else {
$s = '<a href="'.$u.'" class="image" title="'.$alt.'">' .
- '<img src="'.$url.'" alt="'.$alt.'" /></a>';
+ '<img src="'.$url.'" alt="'.$alt.'" longdesc="'.$uf.'" /></a>';
}
if ( '' != $align ) {
$s = "<div class=\"float{$align}\"><span>{$s}</span></div>";
}
$u = $img->getEscapeLocalURL();
+ $uf = $img->getEscapeFullURL();
$more = htmlspecialchars( wfMsg( 'thumbnail-more' ) );
$magnifyalign = $wgContLang->isRTL() ? 'left' : 'right';
} else {
$s .= '<a href="'.$u.'" class="internal" title="'.$alt.'">'.
'<img src="'.$thumbUrl.'" alt="'.$alt.'" ' .
- 'width="'.$boxwidth.'" height="'.$boxheight.'" /></a>';
+ 'width="'.$boxwidth.'" height="'.$boxheight.'" ' .
+ 'longdesc="'.$uf.'" /></a>';
if ( $framed ) {
$zoomicon="";
} else {