From 3ff62983526a3d3cf075c59bbfafe65fe9821d58 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 25 Apr 2011 16:46:45 +0400 Subject: [PATCH] allow loading without allow_url_fopen when CURL is enabled (closes #336) --- sanity_check.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sanity_check.php b/sanity_check.php index 7d040e54..89f1b345 100644 --- a/sanity_check.php +++ b/sanity_check.php @@ -119,8 +119,8 @@ $err_msg = "php.ini: open_basedir is not supported."; } - if (!ini_get("allow_url_fopen")) { - $err_msg = "php.ini: allow_url_fopen is required."; + if (!function_exists("curl_init") && !ini_get("allow_url_fopen")) { + $err_msg = "php.ini: either allow_url_fopen or CURL needs to be enabled."; } if (!function_exists("json_encode")) { -- 2.39.5