diff --git a/utils/xmldump.php b/utils/xmldump.php index 3fa6b98b0..3f1331be9 100644 --- a/utils/xmldump.php +++ b/utils/xmldump.php @@ -611,10 +611,12 @@ $categories = $dms->getDocumentCategories(); if($categories) { echo "\n"; foreach($categories as $category) { - echo " getId()."\">\n"; - echo " ".wrapWithCData($category->getName())."\n"; - echo " \n"; - $statistic['documentcategories']++; + if($category->getId() > 0) { + echo " getId()."\">\n"; + echo " ".wrapWithCData($category->getName())."\n"; + echo " \n"; + $statistic['documentcategories']++; + } } echo "\n"; } diff --git a/utils/xmlimport.php b/utils/xmlimport.php index 6b913a4ec..3b2943dd1 100644 --- a/utils/xmlimport.php +++ b/utils/xmlimport.php @@ -1696,6 +1696,7 @@ if(isset($options['config'])) { } include($myincpath."/inc/inc.Settings.php"); +include($myincpath."/inc/inc.Utils.php"); include($myincpath."/inc/inc.Init.php"); include($myincpath."/inc/inc.Extension.php"); include($myincpath."/inc/inc.DBInit.php"); @@ -1754,6 +1755,7 @@ if(isset($options['sections'])) { $sections = explode(',', $options['sections']); } +/* if(isset($settings->_extraPath)) ini_set('include_path', $settings->_extraPath. PATH_SEPARATOR .ini_get('include_path')); @@ -1768,7 +1770,7 @@ if(!$settings->_doNotCheckDBVersion && !$dms->checkVersion()) { exit; } $dms->setRootFolderID($settings->_rootFolderID); - + */ $rootfolder = $dms->getFolder($folderid); if(!$rootfolder) { exit(1);