]> git.wh0rd.org - tt-rss.git/commitdiff
add sanity check for DOMDocument
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 5 Apr 2011 12:25:07 +0000 (16:25 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 5 Apr 2011 12:25:07 +0000 (16:25 +0400)
sanity_check.php

index 80796b0d4dca14c19e693403a88efd4b2c289821..17937a3f724b546f5d7977d157362a2db4deed31 100644 (file)
                $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;