(bug 22537) ForeignAPIRepo doesn't handle files that have no preview
authorChad Horohoe <demon@users.mediawiki.org>
Sat, 20 Feb 2010 17:48:38 +0000 (17:48 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Sat, 20 Feb 2010 17:48:38 +0000 (17:48 +0000)
includes/filerepo/ForeignAPIFile.php

index f798fec..c46b1f8 100644 (file)
@@ -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...