1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-29 09:44:28 +01:00

minor bug with previous commit

This commit is contained in:
Savetheinternet 2011-11-16 16:41:57 +11:00
parent 38e27873c1
commit 47d5c72cd1

View File

@ -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));
}