r44957 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44956‎ | r44957 | r44958 >
Date:17:35, 23 December 2008
Author:brion
Status:ok
Tags:
Comment:
Show icon instead of exploding for a remote API file we don't have a local handler class for...
Modified paths:
  • /trunk/phase3/includes/filerepo/ForeignAPIFile.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/ForeignAPIFile.php
@@ -35,6 +35,10 @@
3636 }
3737
3838 function transform( $params, $flags = 0 ) {
 39+ if( !$this->canRender() ) {
 40+ // show icon
 41+ return parent::transform( $params, $flags );
 42+ }
3943 $thumbUrl = $this->repo->getThumbUrlFromCache(
4044 $this->getName(),
4145 isset( $params['width'] ) ? $params['width'] : -1,

Status & tagging log