Index: trunk/phase3/includes/specials/SpecialUploadStash.php |
— | — | @@ -192,9 +192,8 @@ |
193 | 193 | |
194 | 194 | $scalerThumbName = $file->getParamThumbName( $file->name, $params ); |
195 | 195 | $scalerThumbUrl = $wgUploadStashScalerBaseUrl . '/' . $file->getRel() . '/' . $scalerThumbName; |
196 | | - // make a CURL call to the scaler to create a thumbnail |
197 | | - wfDebug( "UploadStash: calling " . $scalerThumbUrl . " with curl \n" ); |
198 | 196 | |
| 197 | + // make a curl call to the scaler to create a thumbnail |
199 | 198 | $httpOptions = array( |
200 | 199 | 'method' => 'GET', |
201 | 200 | 'timeout' => 'default' |
— | — | @@ -226,6 +225,7 @@ |
227 | 226 | } |
228 | 227 | self::outputHeaders( $file->getMimeType(), $file->getSize() ); |
229 | 228 | readfile( $file->getPath() ); |
| 229 | + return true; |
230 | 230 | } |
231 | 231 | |
232 | 232 | /** |
— | — | @@ -241,6 +241,7 @@ |
242 | 242 | } |
243 | 243 | self::outputHeaders( $contentType, $size ); |
244 | 244 | print $content; |
| 245 | + return true; |
245 | 246 | } |
246 | 247 | |
247 | 248 | /** |