From 9d55bedd71195f850a58fa0641f0802213d6779b Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Sat, 20 Feb 2010 17:48:38 +0000 Subject: [PATCH] (bug 22537) ForeignAPIRepo doesn't handle files that have no preview --- includes/filerepo/ForeignAPIFile.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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... -- 2.20.1