diff --git a/utils/xmldump.php b/utils/xmldump.php index 2968cd06f..a80cfdd90 100644 --- a/utils/xmldump.php +++ b/utils/xmldump.php @@ -322,54 +322,10 @@ function tree($folder, $parent=null, $indent='', $skipcurrent=false) { /* {{{ */ dumplog($version, 'review', $reviewStatus, $indent); } if($receiptStatus) { - echo $indent." \n"; - $curreceiptid = 0; - foreach($receiptStatus as $a) { - if($a['receiptID'] != $curreceiptid) { - if($curreceiptid != 0) { - echo $indent." \n"; - } - echo $indent." \n"; - echo $indent." ".$a['type']."\n"; - echo $indent." ".$a['required']."\n"; - } - echo $indent." \n"; - echo $indent." ".$a['userID']."\n"; - echo $indent." ".$a['status']."\n"; - echo $indent." ".wrapWithCData($a['comment'])."\n"; - echo $indent." ".$a['date']."\n"; - echo $indent." \n"; -// echo $indent." \n"; - $curreceiptid = $a['receiptID']; - } - if($curreceiptid != 0) - echo $indent." \n"; - echo $indent." \n"; + dumplog($version, 'receipt', $receiptStatus, $indent); } if($revisionStatus) { - echo $indent." \n"; - $currevisionid = 0; - foreach($revisionStatus as $a) { - if($a['revisionID'] != $currevisionid) { - if($currevisionid != 0) { - echo $indent." \n"; - } - echo $indent." \n"; - echo $indent." ".$a['type']."\n"; - echo $indent." ".$a['required']."\n"; - } - echo $indent." \n"; - echo $indent." ".$a['userID']."\n"; - echo $indent." ".$a['status']."\n"; - echo $indent." ".wrapWithCData($a['comment'])."\n"; - echo $indent." ".$a['date']."\n"; - echo $indent." \n"; -// echo $indent." \n"; - $currevisionid = $a['revisionID']; - } - if($currevisionid != 0) - echo $indent." \n"; - echo $indent." \n"; + dumplog($version, 'revision', $revisionStatus, $indent); } if(file_exists($dms->contentDir . $version->getPath())) { echo $indent." contentDir . $version->getPath())."\"";