1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-21 19:01:28 +00:00

mobile: fix headline ordering

mobile: fix htmlpurifier cache being included from wrong directory
mobile: implement ability to mark article as unread (closes #367)
This commit is contained in:
Andrew Dolgov
2011-09-09 14:24:14 +04:00
parent 97e5dbb2e7
commit b9fca8678b
4 changed files with 41 additions and 4 deletions

View File

@@ -120,7 +120,11 @@
@$config->set('HTML', 'Allowed', $allowed);
$config->set('Output.FlashCompat', true);
$config->set('Attr.EnableID', true);
@$config->set('Cache', 'SerializerPath', CACHE_DIR . "/htmlpurifier");
if (!defined('MOBILE_VERSION')) {
@$config->set('Cache', 'SerializerPath', CACHE_DIR . "/htmlpurifier");
} else {
@$config->set('Cache', 'SerializerPath', "../" . CACHE_DIR . "/htmlpurifier");
}
$purifier = new HTMLPurifier($config);