From 967bee7b81371a8a25eacf8162f83997e7265867 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 6 Jul 2009 14:53:32 -0600 Subject: [PATCH] Csstidy moved to Text_Filter_Csstidy package --- imp/lib/IMP.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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': -- 2.11.0