if($showLink) {
$filename = wfEscapeWikiText( $this->displayImg->getName() );
- $medialink = $this->displayImg->isMissing() ?
- "'''$filename'''" :
- "[[Media:$filename|$filename]]";
+ $medialink = "[[Media:$filename|$filename]]";
if( !$this->displayImg->isSafeFile() ) {
$warning = wfMsgNoTrans( 'mediawarning' );
array( 'known', 'noclasses' )
);
$row .= '<span class="history-deleted">'.$url.'</span>';
- } elseif( $file->isMissing() ) {
- # Don't link to missing files
- $row .= $wgLang->timeAndDate( $timestamp, true );
} else {
$url = $iscur ? $this->current->getUrl() : $this->current->getArchiveUrl( $img );
$row .= Xml::element( 'a', array( 'href' => $url ), $wgLang->timeAndDate( $timestamp, true ) );
protected function getThumbForLine( $file ) {
global $wgLang;
- if( $file->isMissing() ) {
- return '<strong class="error">' . wfMsgHtml( 'filehist-missing' ) . '</strong>';
- } elseif( $file->allowInlineDisplay() && $file->userCan( File::DELETED_FILE ) && !$file->isDeleted( File::DELETED_FILE ) ) {
+ if( $file->allowInlineDisplay() && $file->userCan( File::DELETED_FILE ) && !$file->isDeleted( File::DELETED_FILE ) ) {
$params = array(
'width' => '120',
'height' => '120',
* or if it is an SVG image and SVG conversion is enabled.
*/
function canRender() {
- if( $this->isMissing() ) {
- return false;
- }
if ( !isset( $this->canRender ) ) {
$this->canRender = $this->getHandler() && $this->handler->canRender( $this );
}