1
0
mirror of synced 2024-11-22 13:26:08 +03:00

Fix warning of open_basedir

This commit is contained in:
Ilyas Salikhov 2014-04-13 13:58:37 +04:00
parent a5e7b5253d
commit b54350ff2f

View File

@ -557,7 +557,7 @@ class RestApi
$ch = curl_init(); $ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FAILONERROR, FALSE); curl_setopt($ch, CURLOPT_FAILONERROR, FALSE);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);// allow redirects //curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);// allow redirects
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // return into a variable curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // return into a variable
curl_setopt($ch, CURLOPT_TIMEOUT, 30); // times out after 30s curl_setopt($ch, CURLOPT_TIMEOUT, 30); // times out after 30s