X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialUploadStash.php;h=4d0c20c76a2296745b96900f0075f0690c07c55d;hb=1e1c24d12c94a90442de5af89df393d1042a246a;hp=a00b031c9c6b7ad861b3a9e24c3aec940c50faab;hpb=c112c30346bdc0d64296707e4d0611b8e6a065ba;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialUploadStash.php b/includes/specials/SpecialUploadStash.php index a00b031c9c..4d0c20c76a 100644 --- a/includes/specials/SpecialUploadStash.php +++ b/includes/specials/SpecialUploadStash.php @@ -165,8 +165,6 @@ class SpecialUploadStash extends UnlistedSpecialPage { * * @param File $file * @param array $params - * - * @return bool Success */ private function outputThumbFromStash( $file, $params ) { $flags = 0; @@ -263,7 +261,8 @@ class SpecialUploadStash extends UnlistedSpecialPage { $scalerThumbUrl = $scalerBaseUrl . '/' . $file->getUrlRel() . '/' . rawurlencode( $scalerThumbName ); - // make a curl call to the scaler to create a thumbnail + // make an http request based on wgUploadStashScalerBaseUrl to lazy-create + // a thumbnail $httpOptions = [ 'method' => 'GET', 'timeout' => 5 // T90599 attempt to time out cleanly @@ -447,10 +446,3 @@ class SpecialUploadStash extends UnlistedSpecialPage { return true; } } - -/** - * @ingroup SpecialPage - * @ingroup Upload - */ -class SpecialUploadStashTooLargeException extends UploadStashException { -}