View.php
authorAlan Knowles <alan@roojs.com>
Thu, 8 Nov 2012 06:39:52 +0000 (14:39 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 8 Nov 2012 06:39:52 +0000 (14:39 +0800)
View.php

index 0e4e5da..471062a 100644 (file)
--- a/View.php
+++ b/View.php
@@ -36,9 +36,11 @@ class Pman_Ftp_View extends Pman_Ftp_List
                 if (preg_match('#^\s*<\?xml.*encoding="([^"]+)"#mi', $fc, $matches)) {
                     $fc = iconv($matches[1], "UTF8//IGNORE", $fc);
                     @dl('tidy');
-                    echo $tidy;
+                    
                     //if (class_exists('Tidy')) {
                         $tidy = new Tidy();
+                        echo $tidy;
+                        
                         $tidy->parseString($fc, array('indent'=>true), 'utf8');
                         $tidy->cleanRepair();
                         $fc = $tidy->toString();