summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-09-09 14:24:14 +0400
committerAndrew Dolgov <[email protected]>2011-09-09 14:25:05 +0400
commitb9fca8678b2fc3603fc4e2d1b6da85b022f70381 (patch)
tree02ee4a973bb53f93167dd450c54790caaa7ca970 /functions.php
parent97e5dbb2e79ecb59d33f65b5d56076b79b6136c7 (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.php6
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);