summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-04-05 16:25:07 +0400
committerAndrew Dolgov <[email protected]>2011-04-05 16:25:07 +0400
commit76a259c20a95274df93726a69d78de0180dc8def (patch)
tree0b401f75aa47385184b6baf3a380e06cd279fabf
parent592f0339437e0eb91e3790e008c9570b8a89ef98 (diff)
add sanity check for DOMDocument
-rw-r--r--sanity_check.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/sanity_check.php b/sanity_check.php
index 80796b0d4..17937a3f7 100644
--- a/sanity_check.php
+++ b/sanity_check.php
@@ -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;