From 1d1f391c5ee065020c25b3ca3b2459ee423d8665 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sat, 15 Oct 2011 17:06:22 +1100 Subject: [PATCH] Allow per-board template directories. --- inc/template.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/template.php b/inc/template.php index cd280ac0..39d30207 100644 --- a/inc/template.php +++ b/inc/template.php @@ -31,6 +31,8 @@ $options['body'] .= '

Debug

' . print_r($debug, true) . '

'; } + $loader->setPaths($config['dir']['template']); + $twig = new Twig_Environment($loader, Array( 'autoescape' => false, 'cache' => "{$config['dir']['template']}/cache",