mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-30 20:51:22 +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) { | ||||
| 	echo "<documentcategories>\n"; | ||||
| 	foreach($categories as $category) { | ||||
| 		if($category->getId() > 0) { | ||||
| 			echo " <documentcategory id=\"".$category->getId()."\">\n"; | ||||
| 			echo "  <attr name=\"name\">".wrapWithCData($category->getName())."</attr>\n"; | ||||
| 			echo " </documentcategory>\n"; | ||||
| 			$statistic['documentcategories']++; | ||||
| 		} | ||||
| 	} | ||||
| 	echo "</documentcategories>\n"; | ||||
| } | ||||
| } | ||||
|  |  | |||
|  | @ -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); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann