wfThumbError( 404, wfMsg( 'badtitletext' ) );
return;
}
- $title = Title::makeTitleSafe( NS_IMAGE, $bits[1] );
+ $title = Title::makeTitleSafe( NS_FILE, $bits[1] );
if( is_null($title) ) {
wfThumbError( 404, wfMsg( 'badtitletext' ) );
return;
wfThumbError( 404, 'The source file for the specified thumbnail does not exist.' );
return;
}
- $sourcePath = $isOld ? $img->getArchivePath() : $img->getPath();
+ $sourcePath = $img->getPath();
if ( $sourcePath === false ) {
wfThumbError( 500, 'The source file is not locally accessible.' );
return;