diff options
author | Andrew Dolgov <[email protected]> | 2011-09-09 14:24:14 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-09-09 14:25:05 +0400 |
commit | b9fca8678b2fc3603fc4e2d1b6da85b022f70381 (patch) | |
tree | 02ee4a973bb53f93167dd450c54790caaa7ca970 /functions.php | |
parent | 97e5dbb2e79ecb59d33f65b5d56076b79b6136c7 (diff) |
mobile: fix headline ordering
mobile: fix htmlpurifier cache being included from wrong directory
mobile: implement ability to mark article as unread (closes #367)
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/functions.php b/functions.php index 48ab664c8..5ec459fa8 100644 --- a/functions.php +++ b/functions.php @@ -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); |