diff options
author | Andrew Dolgov <[email protected]> | 2010-12-21 09:29:07 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-12-21 09:29:20 +0300 |
commit | d8735fc8f090fd3af0a0c87504c7afef8e3a42bf (patch) | |
tree | b349de2b7c636686b5792d7aea5ea7bdfd48de96 /sanity_check.php | |
parent | 7d8eca888cf48a12382765cac73efd045366882c (diff) |
update htmlpurifier cache stuff, add sanity check
Diffstat (limited to 'sanity_check.php')
-rw-r--r-- | sanity_check.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sanity_check.php b/sanity_check.php index d0f66f006..b20c57d9e 100644 --- a/sanity_check.php +++ b/sanity_check.php @@ -16,6 +16,12 @@ $err_msg = "config: your config file version is incorrect. See config.php-dist.\n"; } + $purifier_cache_dir = "lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer"; + + if (!is_writable($purifier_cache_dir)) { + $err_msg = "config: HTMLPurifier cache directory should be writable by anyone (chmod -R 777 $purifier_cache_dir)"; + } + if (defined('RSS_BACKEND_TYPE')) { print "<b>Fatal error</b>: RSS_BACKEND_TYPE is deprecated. Please remove this option from config.php\n"; |