summaryrefslogtreecommitdiff
path: root/sanity_check.php
diff options
context:
space:
mode:
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")) {