Make CSS compression configurable
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 4 Aug 2009 18:53:57 +0000 (12:53 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 4 Aug 2009 18:53:57 +0000 (12:53 -0600)
framework/Core/lib/Horde.php

index 4031643..fdf9774 100644 (file)
@@ -1709,9 +1709,11 @@ HTML;
                 }
 
                 /* Use CSS tidy to clean up file. */
-                try {
-                    $out = Horde_Text_Filter::filter($out, 'csstidy');
-                } catch (Horde_Exception $e) {}
+                if ($conf['cachecssparams']['compress'] == 'php') {
+                    try {
+                        $out = Horde_Text_Filter::filter($out, 'csstidy');
+                    } catch (Horde_Exception $e) {}
+                }
 
                 switch ($cache_type) {
                 case 'filesystem':