bugfix: fatal error when rebuilding
This commit is contained in:
1 parent
c9423a2c34
commit
34be0531ab
1 file changed
+2
-3
@@ -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/>';
|
||||
|
||||
Reference in new issue
Block a user