diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-01-07 11:54:25 +1100 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-01-07 11:54:25 +1100 |
| commit | 0ac75577ac5758ab5ac651abd98e9d63f9c3190d (patch) | |
| tree | c8c42dac1645c2ba567d114c763309c97464a7f8 /inc | |
| parent | 3a16a570dd4d6cb697653f0e48a2a890bbadc181 (diff) | |
use 
 when new lines are a must if minify_html is enabled
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/functions.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/functions.php b/inc/functions.php index 3e2dc4b4..f078273c 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1276,12 +1276,17 @@ } function quote($body, $quote=true) { + global $config; + $body = str_replace('<br/>', "\n", $body); $body = strip_tags($body); $body = preg_replace("/(^|\n)/", '$1>', $body); + if($config['minify_html']) + $body = str_replace("\n", '
', $body); + return $body . "\n"; } |
