View.php
[Pman.Ftp] / View.php
index 2baec72..a89c2a1 100644 (file)
--- a/View.php
+++ b/View.php
@@ -6,7 +6,7 @@ class Pman_Ftp_View extends Pman_Ftp_List
 {
     //getAuth = covered by list
     
-    function get($v)
+    function get($v = '',  $opts = array())
     {
         
         $ext = pathinfo($_SERVER['PATH_INFO'], PATHINFO_EXTENSION);
@@ -39,15 +39,16 @@ class Pman_Ftp_View extends Pman_Ftp_List
                     //}
                 }
                 if ($mt == 'application/xml') {
-                    @dl('tidy');
+                     //dl('tidy');
                         
                 //if (class_exists('Tidy')) {
                     $tidy = new Tidy();
-                    echo $tidy;
                     
-                    $tidy->parseString($fc, array('indent'=>true), 'utf8');
-                    $tidy->cleanRepair();
-                    $fc = $tidy->toString();
+                    
+                    $tidy->parseString($fc, array('indent'=>true,'output-xml' => true,'input-xml' => true), 'utf8');
+                   // $tidy->cleanRepair();
+                    $fc = (string)$tidy;
+                    
                 }    
                 echo '<PRE>'. htmlspecialchars($fc) . '</PRE>';
                 exit;