From: Brion Vibber Date: Tue, 23 Dec 2008 17:35:05 +0000 (+0000) Subject: Show icon instead of exploding for a remote API file we don't have a local handler... X-Git-Tag: 1.31.0-rc.0~43822 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=3b28f7fdd555ff366b2b02f76ec10963343becd3;p=lhc%2Fweb%2Fwiklou.git Show icon instead of exploding for a remote API file we don't have a local handler class for... --- diff --git a/includes/filerepo/ForeignAPIFile.php b/includes/filerepo/ForeignAPIFile.php index fa692b15bb..d9fb85d069 100644 --- a/includes/filerepo/ForeignAPIFile.php +++ b/includes/filerepo/ForeignAPIFile.php @@ -35,6 +35,10 @@ class ForeignAPIFile extends File { } function transform( $params, $flags = 0 ) { + if( !$this->canRender() ) { + // show icon + return parent::transform( $params, $flags ); + } $thumbUrl = $this->repo->getThumbUrlFromCache( $this->getName(), isset( $params['width'] ) ? $params['width'] : -1,