From b9fca8678b2fc3603fc4e2d1b6da85b022f70381 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 9 Sep 2011 14:24:14 +0400 Subject: mobile: fix headline ordering mobile: fix htmlpurifier cache being included from wrong directory mobile: implement ability to mark article as unread (closes #367) --- functions.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'functions.php') 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); -- cgit v1.2.3