forked from leftypol/leftypol
Fix is_writable check for templates/cache
This commit is contained in:
parent
fa198e207f
commit
9a98d518a0
2 changed files with 2 additions and 2 deletions
|
@ -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']
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue