1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-10 12:49:14 +00:00

add a sanity check for CURL when using pubsubhubbub

This commit is contained in:
Andrew Dolgov
2011-04-01 09:42:15 +04:00
parent b0f379dfff
commit e2bcd11bb1
2 changed files with 8 additions and 4 deletions

View File

@@ -143,6 +143,10 @@
$err_msg = "php.ini: Safe mode is not supported. If you wish to continue, remove this test from sanity_check.php and proceeed at your own risk. Please note that your bug reports will not be accepted or reviewed.";
}
if (PUBSUBHUBBUB_HUB && !function_exists("curl_init")) {
$err_msg = "PUBSUBHUBBUB_HUB is defined, but CURL functions are not found. CURL is required for PubSubHubbub support.";
}
if ($err_msg) {
print "<b>Fatal Error</b>: $err_msg\n";
exit;