1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-29 08:01:29 +00:00

allow loading without allow_url_fopen when CURL is enabled (closes #336)

This commit is contained in:
Andrew Dolgov
2011-04-25 16:46:45 +04:00
parent a58fd801ab
commit 3ff6298352

View File

@@ -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")) {