Merge branch 'seeddms-5.1.x' into seeddms-6.0.x

This commit is contained in:
Uwe Steinmann 2024-04-27 20:10:06 +02:00
commit b51749e631
2 changed files with 9 additions and 5 deletions

View File

@ -682,11 +682,13 @@ $categories = $dms->getDocumentCategories();
if($categories) { if($categories) {
echo "<documentcategories>\n"; echo "<documentcategories>\n";
foreach($categories as $category) { foreach($categories as $category) {
if($category->getId() > 0) {
echo " <documentcategory id=\"".$category->getId()."\">\n"; echo " <documentcategory id=\"".$category->getId()."\">\n";
echo " <attr name=\"name\">".wrapWithCData($category->getName())."</attr>\n"; echo " <attr name=\"name\">".wrapWithCData($category->getName())."</attr>\n";
echo " </documentcategory>\n"; echo " </documentcategory>\n";
$statistic['documentcategories']++; $statistic['documentcategories']++;
} }
}
echo "</documentcategories>\n"; echo "</documentcategories>\n";
} }
} }

View File

@ -1898,6 +1898,7 @@ if(isset($options['config'])) {
} }
include($myincpath."/inc/inc.Settings.php"); include($myincpath."/inc/inc.Settings.php");
include($myincpath."/inc/inc.Utils.php");
include($myincpath."/inc/inc.Init.php"); include($myincpath."/inc/inc.Init.php");
include($myincpath."/inc/inc.Extension.php"); include($myincpath."/inc/inc.Extension.php");
include($myincpath."/inc/inc.DBInit.php"); include($myincpath."/inc/inc.DBInit.php");
@ -1958,6 +1959,7 @@ if(isset($options['sections'])) {
$sections = explode(',', $options['sections']); $sections = explode(',', $options['sections']);
} }
/*
if(isset($settings->_extraPath)) if(isset($settings->_extraPath))
ini_set('include_path', $settings->_extraPath. PATH_SEPARATOR .ini_get('include_path')); ini_set('include_path', $settings->_extraPath. PATH_SEPARATOR .ini_get('include_path'));
@ -1973,7 +1975,7 @@ if(!$settings->_doNotCheckDBVersion && !$dms->checkVersion()) {
exit; exit;
} }
$dms->setRootFolderID($settings->_rootFolderID); $dms->setRootFolderID($settings->_rootFolderID);
*/
$rootfolder = $dms->getFolder($folderid); $rootfolder = $dms->getFolder($folderid);
if(!$rootfolder) { if(!$rootfolder) {
exit(1); exit(1);