update htmlpurifier cache stuff, add sanity check

This commit is contained in:
Andrew Dolgov 2010-12-21 09:29:07 +03:00
parent 7d8eca888c
commit d8735fc8f0
3 changed files with 7 additions and 1 deletions

2
.gitignore vendored
View File

@ -3,4 +3,4 @@ icons/*
cache/*/*
lock/*
tags
lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/HTML/*ser
lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/*/*ser

View File

@ -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";