From: Chad Horohoe Date: Sat, 20 Feb 2010 17:48:38 +0000 (+0000) Subject: (bug 22537) ForeignAPIRepo doesn't handle files that have no preview X-Git-Tag: 1.31.0-rc.0~37689 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=9d55bedd71195f850a58fa0641f0802213d6779b;p=lhc%2Fweb%2Fwiklou.git (bug 22537) ForeignAPIRepo doesn't handle files that have no preview --- diff --git a/includes/filerepo/ForeignAPIFile.php b/includes/filerepo/ForeignAPIFile.php index f798fec9a9..c46b1f8ff1 100644 --- a/includes/filerepo/ForeignAPIFile.php +++ b/includes/filerepo/ForeignAPIFile.php @@ -43,10 +43,7 @@ class ForeignAPIFile extends File { $this->getName(), isset( $params['width'] ) ? $params['width'] : -1, isset( $params['height'] ) ? $params['height'] : -1 ); - if( $thumbUrl ) { - return $this->handler->getTransform( $this, 'bogus', $thumbUrl, $params );; - } - return false; + return $this->handler->getTransform( $this, 'bogus', $thumbUrl, $params );; } // Info we can get from API...