diff options
author | Timo Tijhof <krinklemail@gmail.com> | 2020-02-25 01:33:18 +0000 |
---|---|---|
committer | Krinkle <krinklemail@gmail.com> | 2020-02-25 02:16:12 +0000 |
commit | f575721a06de34bf8e781d7900047521dc260d65 (patch) | |
tree | 473c718659b1ad4ec2e26f2e0082414f9cfc2160 /includes/http/HttpRequestFactory.php | |
parent | a5d5ea82cad38a67b31e52fe471a978f09ae6069 (diff) | |
download | mediawikicore-f575721a06de34bf8e781d7900047521dc260d65.tar.gz mediawikicore-f575721a06de34bf8e781d7900047521dc260d65.zip |
Update all use of $wgVersion to MW_VERSION
Follows-up I04628de4152dd5.
Bug: T212738
Change-Id: I718474ec0d9fd29ac2c05477f0f2493615d8aff5
Diffstat (limited to 'includes/http/HttpRequestFactory.php')
-rw-r--r-- | includes/http/HttpRequestFactory.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/includes/http/HttpRequestFactory.php b/includes/http/HttpRequestFactory.php index 98c9d913a0d1..c1334d87f8be 100644 --- a/includes/http/HttpRequestFactory.php +++ b/includes/http/HttpRequestFactory.php @@ -52,7 +52,7 @@ class HttpRequestFactory { * Note: this should only be used when the target URL is trusted, * to avoid attacks on intranet services accessible by HTTP. * - userAgent A user agent, if you want to override the default - * MediaWiki/$wgVersion + * "MediaWiki/{MW_VERSION}". * - logger A \Psr\Logger\LoggerInterface instance for debug logging * - username Username for HTTP Basic Authentication * - password Password for HTTP Basic Authentication @@ -163,8 +163,6 @@ class HttpRequestFactory { * @return string */ public function getUserAgent() { - global $wgVersion; - - return "MediaWiki/$wgVersion"; + return 'MediaWiki/' . MW_VERSION; } } |