diff options
author | 2022-09-29 14:52:42 -0400 | |
---|---|---|
committer | 2022-09-29 14:52:42 -0400 | |
commit | 6163c15f26e437332a5781f4602cb26072dd29a1 (patch) | |
tree | ea744d071f672a80ae6fe32800333c71760e8852 | |
parent | GentooPackages: Make use of the recommended WAN Cache (diff) | |
download | extensions-6163c15f26e437332a5781f4602cb26072dd29a1.tar.gz extensions-6163c15f26e437332a5781f4602cb26072dd29a1.tar.bz2 extensions-6163c15f26e437332a5781f4602cb26072dd29a1.zip |
GentooPackages: Fix missing namespace usev1.35.3
Signed-off-by: Brian Evans <grknight@gentoo.org>
-rw-r--r-- | GentooPackages/GentooPackages.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/GentooPackages/GentooPackages.php b/GentooPackages/GentooPackages.php index 950d5d67..abf2c9b0 100644 --- a/GentooPackages/GentooPackages.php +++ b/GentooPackages/GentooPackages.php @@ -1,5 +1,7 @@ <?php +use MediaWiki\MediaWikiServices; + class GentooPackages { // implements MediaWiki\Hook\ParserFirstCallInitHook { public static function packageInfo($input, array $args, Parser $parser, PPFrame $frame) { $parser->getOutput()->addModules('ext.gentooPackages'); @@ -33,7 +35,7 @@ class GentooPackages { // implements MediaWiki\Hook\ParserFirstCallInitHook { if(version_compare( $wgVersion, '1.33', '<=' )) $json_str = Http::get($url); else { - $httpRequest = \MediaWiki\MediaWikiServices::getInstance()->getHttpRequestFactory() + $httpRequest = MediaWikiServices::getInstance()->getHttpRequestFactory() ->create($url, [ 'method' => 'GET' ], __METHOD__ ); $status = $httpRequest->execute(); if ($status->isOK()) |