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