From 9bb7ee7fc987daecb421e6fff314c6ce64f7b4e8 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Fri, 22 Jan 2010 19:50:37 +0000 Subject: [PATCH] Revert part of r61382, unrelated change --- includes/specials/SpecialListfiles.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/includes/specials/SpecialListfiles.php b/includes/specials/SpecialListfiles.php index 463be895e4..788009764f 100644 --- a/includes/specials/SpecialListfiles.php +++ b/includes/specials/SpecialListfiles.php @@ -133,10 +133,6 @@ class ImageListPager extends TablePager { $name = $this->mCurrentRow->img_name; $link = $this->getSkin()->linkKnown( Title::makeTitle( NS_FILE, $name ), $value ); $image = wfLocalFile( $value ); - if( !$image ) { - wfDebug( __METHOD__ . " was passed a bogus title '$value'" ); - return ''; - } $url = $image->getURL(); $download = Xml::element('a', array( 'href' => $url ), $imgfile ); return "$link ($download)"; -- 2.20.1