Merge "rdbms: improve database connection loss handling"
[lhc/web/wiklou.git] / includes / specials / SpecialUploadStash.php
index a00b031..4d0c20c 100644 (file)
@@ -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 {
-}