summaryrefslogtreecommitdiff
path: root/sanity_check.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-04-25 16:46:45 +0400
committerAndrew Dolgov <[email protected]>2011-04-25 16:46:45 +0400
commit3ff62983526a3d3cf075c59bbfafe65fe9821d58 (patch)
treefcbbd8c8a2859545ef7585fb10640e138a565cab /sanity_check.php
parenta58fd801abb3d127d73c9aec5c4a93eea7f97ae7 (diff)
allow loading without allow_url_fopen when CURL is enabled (closes #336)
Diffstat (limited to 'sanity_check.php')
-rw-r--r--sanity_check.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/sanity_check.php b/sanity_check.php
index 7d040e54c..89f1b3459 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")) {