X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FfindHooks.php;h=a902397391177f1b5238dc6d25566adb8620178d;hp=900752fe4f69716172525b0a87b731b49542fad6;hb=d029197c7c5b083edef20fa79cc3e6d58e161f72;hpb=3a026473873ac3cc9d5c181f05961f474495d32c diff --git a/maintenance/findHooks.php b/maintenance/findHooks.php index 900752fe4f..a902397391 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__ @@ -304,7 +306,7 @@ class FindHooks extends Maintenance { /** * Get hooks from a directory of PHP files. * @param string $dir Directory path to start at - * @param int $recursive Pass self::FIND_RECURSIVE + * @param int $recurse Pass self::FIND_RECURSIVE * @return array Array: key => hook name; value => array of arguments or string 'unknown' */ private function getHooksFromDir( $dir, $recurse = 0 ) {