Browse Source

minor bug with previous commit

pull/40/head
Savetheinternet 13 years ago
parent
commit
1a58f6ff01
  1. 2
      inc/template.php

2
inc/template.php

@ -45,7 +45,7 @@
if(@file_get_contents("{$config['dir']['template']}/${templateFile}")) {
$body = $twig->render($templateFile, $options);
if($config['minify_html']) {
if($config['minify_html'] && preg_match('/\.html$/', $templateFile)) {
$body = trim(preg_replace("/[\t\r\n]/", '', $body));
}

Loading…
Cancel
Save