1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 07:35:56 +00:00

add sanity check for DOMDocument

This commit is contained in:
Andrew Dolgov
2011-04-05 16:25:07 +04:00
parent 592f033943
commit 76a259c20a

View File

@@ -147,6 +147,10 @@
$err_msg = "PUBSUBHUBBUB_HUB is defined, but CURL functions are not found. CURL is required for PubSubHubbub support.";
}
if (!class_exists("DOMDocument")) {
$err_msg = "PHP: DOMDocument extension not found.";
}
if ($err_msg) {
print "<b>Fatal Error</b>: $err_msg\n";
exit;