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

#268 - Added cURL check to remote themes/plugins download

This commit is contained in:
Moc
2013-05-14 22:42:06 +02:00
parent 2d2f53ae84
commit e68cc32a70
3 changed files with 14 additions and 3 deletions

View File

@@ -323,11 +323,12 @@ class e_file
*/
function getRemoteFile($remote_url, $local_file, $type='temp')
{
// check for cURL
if (!function_exists('curl_init'))
{
if(E107_DEBUG_LEVEL > 0)
{
e107::getAdminLog()->addDebug('getRemoteFile() requires CURL to be installed in file_class.php');
e107::getAdminLog()->addDebug('getRemoteFile() requires cURL to be installed in file_class.php')
}
return FALSE; // May not be installed
}