diff options
| author | kpcyrd <git@rxv.cc> | 2014-07-12 19:59:39 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2014-08-08 21:36:56 +0200 |
| commit | 9a98d518a036efe8c3d05b028fe47842aaa47041 (patch) | |
| tree | e460a9576c2465d3695fb29f0c7882aaa89fb61e /inc/template.php | |
| parent | fa198e207f44c56a9ae48bbc432ea2303dd0deee (diff) | |
Fix is_writable check for templates/cache
Diffstat (limited to 'inc/template.php')
| -rw-r--r-- | inc/template.php | 2 |
1 files changed, 1 insertions, 1 deletions
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'] )); |
