Index: trunk/phase3/includes/filerepo/ForeignAPIFile.php |
— | — | @@ -35,6 +35,10 @@ |
36 | 36 | } |
37 | 37 | |
38 | 38 | function transform( $params, $flags = 0 ) { |
| 39 | + if( !$this->canRender() ) { |
| 40 | + // show icon |
| 41 | + return parent::transform( $params, $flags ); |
| 42 | + } |
39 | 43 | $thumbUrl = $this->repo->getThumbUrlFromCache( |
40 | 44 | $this->getName(), |
41 | 45 | isset( $params['width'] ) ? $params['width'] : -1, |