} else {
$file = wfFindFile( $title );
if ( $file && $file->exists() ) {
- $wgOut->redirect( $file->getURL() );
+ $wgOut->redirect( wfExpandUrl( $file->getURL() ) );
} else {
$wgOut->setStatusCode( 404 );
$cform = new FilepathForm( $title );
$thumb = $f->getThumbnail($this->urlwidth, $this->urlheight);
if($thumb)
{
- $vals['thumburl'] = $thumb->getURL();
+ $vals['thumburl'] = wfExpandUrl( $thumb->getURL() );
$vals['thumbwidth'] = $thumb->getWidth();
$vals['thumbheight'] = $thumb->getHeight();
}
}
- $vals['url'] = $f->getURL();
+ $vals['url'] = wfExpandUrl( $f->getURL() );
}
if($this->fld_comment)
$vals['comment'] = $f->getDescription();