r61384 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61383‎ | r61384 | r61385 >
Date:19:50, 22 January 2010
Author:demon
Status:ok
Tags:
Comment:
Revert part of r61382, unrelated change
Modified paths:
  • /trunk/phase3/includes/specials/SpecialListfiles.php (modified) (history)

Diff [purge]

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

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r61382Clarify parameters to wfFindFile and wfLocalFile, and return caveat to the "T...demon19:48, 22 January 2010

Status & tagging log