mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
fix includes, do not import document category with id=0
This commit is contained in:
parent
eb9f0e7eda
commit
e86aeff722
|
@ -611,11 +611,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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1696,6 +1696,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");
|
||||||
|
@ -1754,6 +1755,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'));
|
||||||
|
|
||||||
|
@ -1768,7 +1770,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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user