Browse Source

bugfix: fatal error when rebuilding

pull/40/head
Michael Save 12 years ago
parent
commit
34be0531ab
  1. 5
      mod.php

5
mod.php

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

Loading…
Cancel
Save