Index: trunk/phase3/includes/specials/SpecialListfiles.php |
— | — | @@ -133,10 +133,6 @@ |
134 | 134 | $name = $this->mCurrentRow->img_name; |
135 | 135 | $link = $this->getSkin()->linkKnown( Title::makeTitle( NS_FILE, $name ), $value ); |
136 | 136 | $image = wfLocalFile( $value ); |
137 | | - if( !$image ) { |
138 | | - wfDebug( __METHOD__ . " was passed a bogus title '$value'" ); |
139 | | - return ''; |
140 | | - } |
141 | 137 | $url = $image->getURL(); |
142 | 138 | $download = Xml::element('a', array( 'href' => $url ), $imgfile ); |
143 | 139 | return "$link ($download)"; |