diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-12-03 09:20:55 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-12-03 09:20:55 +0100 |
commit | a22fbfc60f36f5f7ee10d5ae6fe347340c2ee67c (patch) | |
tree | 31882fdc36540fecfd62e5011fc38515e504a3db /includes/HttpFunctions.php | |
parent | 6ca0c5e0a943b64b4e3d0a11a80c5679f7252e64 (diff) |
Update to MediaWiki 1.17.1
Diffstat (limited to 'includes/HttpFunctions.php')
-rw-r--r-- | includes/HttpFunctions.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/includes/HttpFunctions.php b/includes/HttpFunctions.php index e6124426..3d4d77a9 100644 --- a/includes/HttpFunctions.php +++ b/includes/HttpFunctions.php @@ -200,6 +200,15 @@ class MWHttpRequest { } /** + * Simple function to test if we can make any sort of requests at all, using + * cURL or fopen() + * @return bool + */ + public static function canMakeRequests() { + return function_exists( 'curl_init' ) || wfIniGetBool( 'allow_url_fopen' ); + } + + /** * Generate a new request object * @see MWHttpRequest::__construct */ |