From 435519dee779cb7db178669a66891a3c5f996985 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Wed, 6 Feb 2013 16:36:07 +0100 Subject: [PATCH] // use curl against file_get_contents if allow_url_fopen is disabled for contextual help --- classes/HelpAccess.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/HelpAccess.php b/classes/HelpAccess.php index 9097d041a..59f01dcc5 100644 --- a/classes/HelpAccess.php +++ b/classes/HelpAccess.php @@ -79,7 +79,7 @@ class HelpAccessCore $tooltip = ''; $ctx = @stream_context_create(array('http' => array('timeout' => 10))); - $res = @file_get_contents($url, 0, $ctx); + $res = Tools::file_get_contents($url, false, $ctx); $infos = preg_split('/\|/', $res); if (count($infos) > 0)