View.php
[Pman.Ftp] / View.php
index f7e5399..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);
@@ -45,7 +45,7 @@ class Pman_Ftp_View extends Pman_Ftp_List
                     $tidy = new Tidy();
                     
                     
-                    $tidy->parseString($fc, array('indent'=>true,'output-xml' => true,'output-html' => false), 'utf8');
+                    $tidy->parseString($fc, array('indent'=>true,'output-xml' => true,'input-xml' => true), 'utf8');
                    // $tidy->cleanRepair();
                     $fc = (string)$tidy;