Index: trunk/phase3/includes/filerepo/file/File.php |
— | — | @@ -756,10 +756,12 @@ |
757 | 757 | global $wgIgnoreImageErrors, $wgThumbnailEpoch; |
758 | 758 | |
759 | 759 | $thumbPath = $this->getThumbPath( $thumbName ); // final thumb path |
760 | | - |
761 | 760 | if ( $this->repo && $this->repo->canTransformVia404() && !( $flags & self::RENDER_NOW ) ) { |
762 | 761 | wfDebug( __METHOD__ . " transformation deferred." ); |
763 | | - return $this->handler->getTransform( $this, false, $thumbUrl, $params ); |
| 762 | + // XXX: Pass in the storage path even though we are not rendering anything |
| 763 | + // and the path is supposed to be an FS path. This is due to getScalerType() |
| 764 | + // getting called on the path and clobbering the $thumb->getUrl() if it's false. |
| 765 | + return $this->handler->getTransform( $this, $thumbPath, $thumbUrl, $params ); |
764 | 766 | } |
765 | 767 | |
766 | 768 | wfDebug( __METHOD__.": Doing stat for $thumbPath\n" ); |