From: Michael M Slusarz Date: Mon, 6 Jul 2009 20:53:32 +0000 (-0600) Subject: Csstidy moved to Text_Filter_Csstidy package X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=967bee7b81371a8a25eacf8162f83997e7265867;p=horde.git Csstidy moved to Text_Filter_Csstidy package --- diff --git a/imp/lib/IMP.php b/imp/lib/IMP.php index d7f6645c7..0247127b1 100644 --- a/imp/lib/IMP.php +++ b/imp/lib/IMP.php @@ -1559,11 +1559,9 @@ class IMP } /* Use CSS tidy to clean up file. */ - require_once HORDE_BASE . '/services/csstidy/class.csstidy.php'; - $css_tidy = new csstidy(); - $css_tidy->load_template('highest_compression'); - $css_tidy->parse($out); - $out = $css_tidy->print->plain(); + try { + $out = Horde_Text_Filter::filter($out, 'csstidy'); + } catch (Horde_Exception $e) {} switch ($cache_type) { case 'filesystem':