summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/mod.php b/mod.php
index d4b55655..38e423eb 100644
--- a/mod.php
+++ b/mod.php
@@ -1907,9 +1907,8 @@ if(!$mod) {
$body = '<div class="ban"><h2>Rebuilding&hellip;</h2><p>';
$body .= 'Clearing template cache&hellip;<br/>';
- $twig = new Twig_Environment($loader, array(
- 'cache' => "{$config['dir']['template']}/cache"
- ));
+
+ load_twig();
$twig->clearCacheFiles();
$body .= 'Regenerating theme files&hellip;<br/>';