diff --git a/e107_admin/plugin.php b/e107_admin/plugin.php
index 73fc3d410..1aab93a0f 100644
--- a/e107_admin/plugin.php
+++ b/e107_admin/plugin.php
@@ -456,6 +456,11 @@ class pluginManager{
$mes = e107::getMessage();
// $mes->addWarning("Some older plugins may produce unpredictable results.");
+ // check for cURL
+ if(!function_exists(curl_init))
+ {
+ $mes->addWarning("cURL is currently required to use this feature. Contact your webhosting provider to enable cURL"); // TODO LAN?
+ }
$from = intval(varset($_GET['frm']));
$srch = preg_replace('/[^\w]/','', vartrue($_GET['srch']));
diff --git a/e107_handlers/file_class.php b/e107_handlers/file_class.php
index 3ddce1371..40ea195e4 100644
--- a/e107_handlers/file_class.php
+++ b/e107_handlers/file_class.php
@@ -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
}
diff --git a/e107_handlers/theme_handler.php b/e107_handlers/theme_handler.php
index 4b4a00fb4..2be2caa21 100644
--- a/e107_handlers/theme_handler.php
+++ b/e107_handlers/theme_handler.php
@@ -455,6 +455,12 @@ class themeHandler
$limit = 96;
$srch = preg_replace('/[^\w]/','', vartrue($_GET['srch']));
+ // check for cURL
+ if(!function_exists(curl_init))
+ {
+ $mes->addWarning("cURL is currently required to use this feature. Contact your webhosting provider to enable cURL"); // TODO LAN?
+ }
+
$file = "http://e107.org/feed?type=theme&frm=".$from."&srch=".$srch."&limit=".$limit;
$mes->addDebug("File = ".$file);
@@ -603,7 +609,7 @@ class themeHandler
$text .= "";
- $ns->tablerender(TPVLAN_26.SEP."Available for Download", $text. $mes->render());
+ $ns->tablerender(TPVLAN_26.SEP."Available for Download", $mes->render().$text);
}
@@ -957,7 +963,6 @@ class themeHandler
$pref = e107::getPref();
$frm = e107::getForm();
-
$author = ($theme['email'] ? "".$theme['author']."" : $theme['author']);
$website = ($theme['website'] ? "".$theme['website']."" : "");
// $preview = "".($theme['preview'] ? "
" : "
")."";