mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 13:18:06 +00:00 
			
		
		
		
	run hook addRouteAfterAuthentication if hook addRoute didn't run
This commit is contained in:
		
							parent
							
								
									d2584c7f34
								
							
						
					
					
						commit
						aacfd1f486
					
				|  | @ -26,7 +26,6 @@ if(true) { | |||
| 	include("inc/inc.Init.php"); | ||||
| 	include("inc/inc.Extension.php"); | ||||
| 	include("inc/inc.DBInit.php"); | ||||
| //	include("inc/inc.Authentication.php");
 | ||||
| 
 | ||||
| 	require "vendor/autoload.php"; | ||||
| 
 | ||||
|  | @ -56,6 +55,11 @@ if(true) { | |||
| 		foreach($GLOBALS['SEEDDMS_HOOKS']['initDMS'] as $hookObj) { | ||||
| 			if (method_exists($hookObj, 'addRoute')) { | ||||
| 				$hookObj->addRoute(array('dms'=>$dms, 'app'=>$app, 'settings'=>$settings)); | ||||
| 			} else { | ||||
| 				include("inc/inc.Authentication.php"); | ||||
| 				if (method_exists($hookObj, 'addRouteAfterAuthentication')) { | ||||
| 					$hookObj->addRouteAfterAuthentication(array('dms'=>$dms, 'app'=>$app, 'settings'=>$settings, 'user'=>$user)); | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann