From 213f86972fa4f4aa0e929a838ae68df58ec8a3b8 Mon Sep 17 00:00:00 2001 From: Neil Kandalgaonkar Date: Tue, 30 Nov 2010 04:47:00 +0000 Subject: [PATCH] matching returns --- includes/specials/SpecialUploadStash.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialUploadStash.php b/includes/specials/SpecialUploadStash.php index 032c862cd8..f71dd22498 100644 --- a/includes/specials/SpecialUploadStash.php +++ b/includes/specials/SpecialUploadStash.php @@ -192,9 +192,8 @@ class SpecialUploadStash extends UnlistedSpecialPage { $scalerThumbName = $file->getParamThumbName( $file->name, $params ); $scalerThumbUrl = $wgUploadStashScalerBaseUrl . '/' . $file->getRel() . '/' . $scalerThumbName; - // make a CURL call to the scaler to create a thumbnail - wfDebug( "UploadStash: calling " . $scalerThumbUrl . " with curl \n" ); + // make a curl call to the scaler to create a thumbnail $httpOptions = array( 'method' => 'GET', 'timeout' => 'default' @@ -226,6 +225,7 @@ class SpecialUploadStash extends UnlistedSpecialPage { } self::outputHeaders( $file->getMimeType(), $file->getSize() ); readfile( $file->getPath() ); + return true; } /** @@ -241,6 +241,7 @@ class SpecialUploadStash extends UnlistedSpecialPage { } self::outputHeaders( $contentType, $size ); print $content; + return true; } /** -- 2.20.1