Removed test code from printTreeXML,
authorjollytoad <jollytoad>
Tue, 8 Mar 2005 10:48:11 +0000 (10:48 +0000)
committerjollytoad <jollytoad>
Tue, 8 Mar 2005 10:48:11 +0000 (10:48 +0000)
can make use the double-click feature instead.

classes/Misc.php

index 815b9fe7b0cad03c837bd0310871f753108d4b50..2b331f0a21d2ee1c0de914d0cc04694ede256143 100644 (file)
@@ -2,7 +2,7 @@
        /**
         * Class to hold various commonly used functions
         *
-        * $Id: Misc.php,v 1.98.2.7 2005/03/08 09:41:23 jollytoad Exp $
+        * $Id: Misc.php,v 1.98.2.8 2005/03/08 10:48:11 jollytoad Exp $
         */
         
        class Misc {
                 */
                function printTreeXML(&$treedata, &$actions, $opts = array()) {
                        global $conf;
-                       $test = false;
                        header("Content-Type: text/xml");
                        header("Cache-Control: no-cache");
                        
                        while (!$treedata->EOF) {
                                echo "<tree", value_xml_attr('text', $actions['item']['text'], $treedata->f);
                                
-                               if ($test) {
-                                       $itemaction =& $actions['expand'];
-                               } else {
-                                       $itemaction =& $actions['item'];
-                               }
-                               
-                               echo $this->printActionUrl($itemaction, $treedata->f, 'action');
+                               echo $this->printActionUrl($actions['item'], $treedata->f, 'action');
                                
                                if (!empty($actions['expand'])) {
                                        echo $this->printActionUrl($actions['expand'], $treedata->f, 'src');