1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 06:38:00 +02:00

Merge pull request #1966 from MikeyGMT/mikey20161025

Added CURLOPT_TIMEOUT to Fix GitSync #1936 and some fixme flags
This commit is contained in:
Cameron
2016-11-03 10:37:54 -07:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -386,7 +386,7 @@ class e_bbcode
* @todo - capturing output deprecated
*/
ob_start();
$bbcode_return = eval($bbcode);
$bbcode_return = eval($bbcode); //FIXME notice removal
$bbcode_output = ob_get_contents();
ob_end_clean();

View File

@@ -440,7 +440,7 @@ class e_file
$cp = $this->initCurl($remote_url);
curl_setopt($cp, CURLOPT_FILE, $fp);
curl_setopt($cp, CURLOPT_TIMEOUT, 20);//FIXME Make Pref - avoids get file timeout on slow connections
/*
$cp = curl_init($remote_url);
@@ -452,6 +452,7 @@ class e_file
*/
$buffer = curl_exec($cp);
//FIXME addDebug curl_error output - here see #1936
curl_close($cp);
fclose($fp);