}
}
- protected function hitThumbUrl( $file, $transformParams, &$thumbUrl ) {
+ protected function hitThumbUrl( LocalFile $file, $transformParams, &$thumbUrl ) {
global $wgUploadThumbnailRenderHttpCustomHost, $wgUploadThumbnailRenderHttpCustomDomain;
$thumbName = $file->thumbName( $transformParams );
wfDebug( __METHOD__ . ": hitting url {$thumbUrl}\n" );
$request = MWHttpRequest::factory( $thumbUrl,
- array( 'method' => 'HEAD', 'followRedirects' => true ),
+ [ 'method' => 'HEAD', 'followRedirects' => true ],
__METHOD__
);