From c70f080fb2e0fb6ae5ad40dd5ba218c8cbed8e7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Wed, 20 Feb 2013 16:24:51 +0100 Subject: [PATCH] // small fix --- classes/Tools.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Tools.php b/classes/Tools.php index 9ebfe64ff..5a1fed65a 100644 --- a/classes/Tools.php +++ b/classes/Tools.php @@ -1277,7 +1277,7 @@ class ToolsCore public static function file_get_contents($url, $use_include_path = false, $stream_context = null, $curl_timeout = 5) { - if ($stream_context == null && !preg_match('/^https?:\/\//', $url)) + if ($stream_context == null && preg_match('/^https?:\/\//', $url)) $stream_context = @stream_context_create(array('http' => array('timeout' => $curl_timeout))); if (in_array(ini_get('allow_url_fopen'), array('On', 'on', '1')) || !preg_match('/^https?:\/\//', $url)) return @file_get_contents($url, $use_include_path, $stream_context);