From: Derick Alangi Date: Tue, 27 Aug 2019 22:52:38 +0000 (+0100) Subject: jobqueue: Avoid usage of deprecated `MWHttpRequest::factory()` X-Git-Tag: 1.34.0-rc.0~456^2 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=b5445185c3ba5fe5c3cdafb413774ab985408bb8;p=lhc%2Fweb%2Fwiklou.git jobqueue: Avoid usage of deprecated `MWHttpRequest::factory()` Change-Id: I58c007436d38e4d0edd1ce14034b2f3bfb536df9 --- diff --git a/includes/jobqueue/jobs/ThumbnailRenderJob.php b/includes/jobqueue/jobs/ThumbnailRenderJob.php index 85e3af9d2d..28e6433193 100644 --- a/includes/jobqueue/jobs/ThumbnailRenderJob.php +++ b/includes/jobqueue/jobs/ThumbnailRenderJob.php @@ -108,7 +108,8 @@ class ThumbnailRenderJob extends Job { // T203135 We don't wait for the request to complete, as this is mostly fire & forget. // Looking at the HTTP status of requests that take less than 1s is a sanity check. - $request = MWHttpRequest::factory( $thumbUrl, + $request = MediaWikiServices::getInstance()->getHttpRequestFactory()->create( + $thumbUrl, [ 'method' => 'HEAD', 'followRedirects' => true, 'timeout' => 1 ], __METHOD__ );