add sanity check for DOMDocument
This commit is contained in:
parent
592f033943
commit
76a259c20a
|
@ -147,6 +147,10 @@
|
||||||
$err_msg = "PUBSUBHUBBUB_HUB is defined, but CURL functions are not found. CURL is required for PubSubHubbub support.";
|
$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) {
|
if ($err_msg) {
|
||||||
print "<b>Fatal Error</b>: $err_msg\n";
|
print "<b>Fatal Error</b>: $err_msg\n";
|
||||||
exit;
|
exit;
|
||||||
|
|
Loading…
Reference in New Issue