bugfix: fatal error when rebuilding

This commit is contained in:
Michael Save 2012-04-12 12:44:37 +10:00
parent c9423a2c34
commit 34be0531ab

View File

@ -1907,9 +1907,8 @@ if(!$mod) {
$body = '<div class="ban"><h2>Rebuilding&hellip;</h2><p>'; $body = '<div class="ban"><h2>Rebuilding&hellip;</h2><p>';
$body .= 'Clearing template cache&hellip;<br/>'; $body .= 'Clearing template cache&hellip;<br/>';
$twig = new Twig_Environment($loader, array(
'cache' => "{$config['dir']['template']}/cache" load_twig();
));
$twig->clearCacheFiles(); $twig->clearCacheFiles();
$body .= 'Regenerating theme files&hellip;<br/>'; $body .= 'Regenerating theme files&hellip;<br/>';