Index: branches/FileBackend/phase3/includes/media/MediaTransformOutput.php |
— | — | @@ -71,13 +71,15 @@ |
72 | 72 | |
73 | 73 | /** |
74 | 74 | * Check if an output thumbnail file was actually made. |
75 | | - * This will return false if there was an error or the |
76 | | - * thumnail is to be handled client-side only. |
| 75 | + * This will return false if there was an error, the |
| 76 | + * thumnail is to be handled client-side only, or if |
| 77 | + * transformation was deferred via TRANSFORM_LATER. |
77 | 78 | * |
78 | 79 | * @return Bool |
79 | 80 | */ |
80 | 81 | public function hasFile() { |
81 | | - return ( !$this->isError() && $this->path ); |
| 82 | + // If TRANSFORM_LATER, a 0-byte temp file be at the path (not purged yet) |
| 83 | + return ( !$this->isError() && $this->path && filesize( $this->path ) ); |
82 | 84 | } |
83 | 85 | |
84 | 86 | /** |