From 9a98d518a036efe8c3d05b028fe47842aaa47041 Mon Sep 17 00:00:00 2001 From: kpcyrd Date: Sat, 12 Jul 2014 19:59:39 +0200 Subject: Fix is_writable check for templates/cache --- inc/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/template.php') diff --git a/inc/template.php b/inc/template.php index c10ac454..48b2b1bb 100644 --- a/inc/template.php +++ b/inc/template.php @@ -23,7 +23,7 @@ function load_twig() { $loader->setPaths($config['dir']['template']); $twig = new Twig_Environment($loader, array( 'autoescape' => false, - 'cache' => is_writable('templates') && (!is_dir('templates/cache') || is_writable('templates/cache')) ? + 'cache' => is_writable('templates') || (is_dir('templates/cache') && is_writable('templates/cache')) ? "{$config['dir']['template']}/cache" : false, 'debug' => $config['debug'] )); -- cgit v1.3