// use curl against file_get_contents if allow_url_fopen is disabled for contextual help

This commit is contained in:
Rémi Gaillard
2013-02-06 16:36:07 +01:00
parent 08d5440c7f
commit ac686b6b48
+1 -1
View File
@@ -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)