X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FPingback.php;h=f4e85adfdb1842c7fd0aac38d9dd9fd8dfa657bd;hp=8d7c3b6e4dd2ee1da9e6e39305ba33c697f81af1;hb=a3cd158d8433e41cbeb299f0e268dfef363b2afd;hpb=84662b72f073f2df3aa8e8e209da0bc568b91716 diff --git a/includes/Pingback.php b/includes/Pingback.php index 8d7c3b6e4d..f4e85adfdb 100644 --- a/includes/Pingback.php +++ b/includes/Pingback.php @@ -22,6 +22,7 @@ use Psr\Log\LoggerInterface; use MediaWiki\Logger\LoggerFactory; +use MediaWiki\MediaWikiServices; /** * Send information about this MediaWiki instance to MediaWiki.org. @@ -229,7 +230,7 @@ class Pingback { $json = FormatJson::encode( $data ); $queryString = rawurlencode( str_replace( ' ', '\u0020', $json ) ) . ';'; $url = 'https://www.mediawiki.org/beacon/event?' . $queryString; - return Http::post( $url ) !== false; + return MediaWikiServices::getInstance()->getHttpRequestFactory()->post( $url ) !== null; } /**