r62742 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62741‎ | r62742 | r62743 >
Date:17:48, 20 February 2010
Author:demon
Status:ok
Tags:
Comment:
(bug 22537) ForeignAPIRepo doesn't handle files that have no preview
Modified paths:
  • /trunk/phase3/includes/filerepo/ForeignAPIFile.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/ForeignAPIFile.php
@@ -43,10 +43,7 @@
4444 $this->getName(),
4545 isset( $params['width'] ) ? $params['width'] : -1,
4646 isset( $params['height'] ) ? $params['height'] : -1 );
47 - if( $thumbUrl ) {
48 - return $this->handler->getTransform( $this, 'bogus', $thumbUrl, $params );;
49 - }
50 - return false;
 47+ return $this->handler->getTransform( $this, 'bogus', $thumbUrl, $params );;
5148 }
5249
5350 // Info we can get from API...

Status & tagging log