From: Michael M Slusarz Date: Tue, 4 Aug 2009 18:53:57 +0000 (-0600) Subject: Make CSS compression configurable X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=115bca1aa1de77e2e42ca99eaaecb31ae7e8c8fd;p=horde.git Make CSS compression configurable --- diff --git a/framework/Core/lib/Horde.php b/framework/Core/lib/Horde.php index 403164384..fdf9774eb 100644 --- a/framework/Core/lib/Horde.php +++ b/framework/Core/lib/Horde.php @@ -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':