diff options
| -rw-r--r-- | mod.php | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1907,9 +1907,8 @@ if(!$mod) { $body = '<div class="ban"><h2>Rebuilding…</h2><p>'; $body .= 'Clearing template cache…<br/>'; - $twig = new Twig_Environment($loader, array( - 'cache' => "{$config['dir']['template']}/cache" - )); + + load_twig(); $twig->clearCacheFiles(); $body .= 'Regenerating theme files…<br/>'; |
