aboutsummaryrefslogtreecommitdiffstats
path: root/includes/HttpFunctions.php
diff options
context:
space:
mode:
authorLiangent <liangent@gmail.com>2012-07-30 23:18:44 +0800
committerLiangent <liangent@gmail.com>2012-07-30 23:18:44 +0800
commit10ec7a199097d9130dea4e23eb9654e3f17d12b0 (patch)
treede76b04df1fb85042a28f4497b18c73429b4fd86 /includes/HttpFunctions.php
parent747e74e338dec5a14de9cf3f7b9d1159a44a3c3a (diff)
downloadmediawikicore-10ec7a199097d9130dea4e23eb9654e3f17d12b0.tar.gz
mediawikicore-10ec7a199097d9130dea4e23eb9654e3f17d12b0.zip
Make MWHttpRequest::__construct() protected.
This class is not for direct initialization, and new MWHttpRequest(...)->execute() doesn't work at all. Change-Id: I557723c218cd8e8f27283d01141c890263da095d
Diffstat (limited to 'includes/HttpFunctions.php')
-rw-r--r--includes/HttpFunctions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/HttpFunctions.php b/includes/HttpFunctions.php
index 66b6e729e924..8453e62cc95a 100644
--- a/includes/HttpFunctions.php
+++ b/includes/HttpFunctions.php
@@ -212,7 +212,7 @@ class MWHttpRequest {
* @param $url String: url to use. If protocol-relative, will be expanded to an http:// URL
* @param $options Array: (optional) extra params to pass (see Http::request())
*/
- function __construct( $url, $options = array() ) {
+ protected function __construct( $url, $options = array() ) {
global $wgHTTPTimeout;
$this->url = wfExpandUrl( $url, PROTO_HTTP );