summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-10-15 17:06:22 +1100
committerSavetheinternet <savetheinternet@tinyboard.org>2011-10-15 17:06:22 +1100
commit1d1f391c5ee065020c25b3ca3b2459ee423d8665 (patch)
tree9e216b6da1305f44bc0f5f0a5b5a094a0dc3e12f /inc/template.php
parent8243ae56cd5a5e30e7d709bfaef1f493e5695235 (diff)
Allow per-board template directories.
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php2
1 files changed, 2 insertions, 0 deletions
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'] .= '<h3>Debug</h3><pre style="white-space: pre-wrap;font-size: 10px;">' . print_r($debug, true) . '</pre><hr/>';
}
+ $loader->setPaths($config['dir']['template']);
+
$twig = new Twig_Environment($loader, Array(
'autoescape' => false,
'cache' => "{$config['dir']['template']}/cache",