]> git.wh0rd.org - tt-rss.git/blobdiff - sanity_check.php
move HTMLPurifier cache inside CACHE_DIR/htmlpurifier
[tt-rss.git] / sanity_check.php
index 80796b0d4dca14c19e693403a88efd4b2c289821..ce755f4028b2fe9e0237e067c25496f4b4ecb382 100644 (file)
@@ -17,7 +17,7 @@
                $err_msg = "config: your config file version is incorrect. See config.php-dist.\n";
        }
 
-       $purifier_cache_dir = "lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer";
+       $purifier_cache_dir = CACHE_DIR . "/htmlpurifier";
 
        if (!is_writable($purifier_cache_dir)) {
                $err_msg = "config: HTMLPurifier cache directory should be writable by anyone (chmod -R 777 $purifier_cache_dir)";
                $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 (!ISCONFIGURED) {
+               $err_msg = "config: please read config.php completely.";
+       }
+
        if ($err_msg) {
                print "<b>Fatal Error</b>: $err_msg\n";
                exit;