matching returns
authorNeil Kandalgaonkar <neilk@users.mediawiki.org>
Tue, 30 Nov 2010 04:47:00 +0000 (04:47 +0000)
committerNeil Kandalgaonkar <neilk@users.mediawiki.org>
Tue, 30 Nov 2010 04:47:00 +0000 (04:47 +0000)
includes/specials/SpecialUploadStash.php

index 032c862..f71dd22 100644 (file)
@@ -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;
        }
 
        /**