mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-01 18:47:20 +01:00
replace hardcoded "templates/" directory with appropriate config directive
This commit is contained in:
parent
bb9475a4e3
commit
21b81d08e1
@ -85,7 +85,7 @@
|
|||||||
|
|
||||||
$twig = new Twig_Environment($loader, Array(
|
$twig = new Twig_Environment($loader, Array(
|
||||||
'autoescape' => false,
|
'autoescape' => false,
|
||||||
'cache' => 'templates/cache',
|
'cache' => "{$config['dir']['template']}/cache",
|
||||||
'debug' => ($config['debug'] ? true : false),
|
'debug' => ($config['debug'] ? true : false),
|
||||||
));
|
));
|
||||||
$twig->addExtension(new Tinyboard_Twig_Extension());
|
$twig->addExtension(new Tinyboard_Twig_Extension());
|
||||||
|
Loading…
Reference in New Issue
Block a user