Csstidy moved to Text_Filter_Csstidy package
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 6 Jul 2009 20:53:32 +0000 (14:53 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 6 Jul 2009 20:53:32 +0000 (14:53 -0600)
imp/lib/IMP.php

index d7f6645..0247127 100644 (file)
@@ -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':