X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FfindHooks.php;h=b57db8f18cf45ba0c8357acb7c5599816b1c81c8;hb=9f5c319b091fc84796c1e841699cc70c7566bef7;hp=900752fe4f69716172525b0a87b731b49542fad6;hpb=902738b40005f6b849408365e7ed4a3b26fca1aa;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/findHooks.php b/maintenance/findHooks.php index 900752fe4f..b57db8f18c 100644 --- a/maintenance/findHooks.php +++ b/maintenance/findHooks.php @@ -34,6 +34,8 @@ * @author Antoine Musso */ +use MediaWiki\MediaWikiServices; + require_once __DIR__ . '/Maintenance.php'; /** @@ -216,7 +218,7 @@ class FindHooks extends Maintenance { $retval = []; while ( true ) { - $json = Http::get( + $json = MediaWikiServices::getInstance()->getHttpRequestFactory()->get( wfAppendQuery( 'https://www.mediawiki.org/w/api.php', $params ), [], __METHOD__