From 10ec7a199097d9130dea4e23eb9654e3f17d12b0 Mon Sep 17 00:00:00 2001 From: Liangent Date: Mon, 30 Jul 2012 23:18:44 +0800 Subject: [PATCH] Make MWHttpRequest::__construct() protected. This class is not for direct initialization, and new MWHttpRequest(...)->execute() doesn't work at all. Change-Id: I557723c218cd8e8f27283d01141c890263da095d --- includes/HttpFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/HttpFunctions.php b/includes/HttpFunctions.php index 66b6e729e9..8453e62cc9 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 ); -- 2.20.1