From 1a58f6ff015361a1426408d267ab053326d0a383 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Wed, 16 Nov 2011 16:41:57 +1100 Subject: [PATCH] minor bug with previous commit --- inc/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/template.php b/inc/template.php index 9c61ae15..228629bb 100644 --- a/inc/template.php +++ b/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)); }