From 34be0531abfaded76f9aebda9dc45354473c2e23 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Thu, 12 Apr 2012 12:44:37 +1000 Subject: [PATCH] bugfix: fatal error when rebuilding --- mod.php | 5 ++--- 1 file 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 = '

Rebuilding…

'; $body .= 'Clearing template cache…
'; - $twig = new Twig_Environment($loader, array( - 'cache' => "{$config['dir']['template']}/cache" - )); + + load_twig(); $twig->clearCacheFiles(); $body .= 'Regenerating theme files…
';