mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 13:18:06 +00:00 
			
		
		
		
	call notification hooks before and after setting up email notification
This commit is contained in:
		
							parent
							
								
									cc6f64a1a3
								
							
						
					
					
						commit
						64f7e9be10
					
				|  | @ -60,9 +60,25 @@ if (isset($_COOKIE["mydms_session"])) { | |||
| 		} | ||||
| 	} | ||||
| 	$notifier = new SeedDMS_NotificationService(); | ||||
| 	if(isset($GLOBALS['SEEDDMS_HOOKS']['notification'])) { | ||||
| 		foreach($GLOBALS['SEEDDMS_HOOKS']['notification'] as $notificationObj) { | ||||
| 			if(method_exists($notificationObj, 'preAddService')) { | ||||
| 				$notificationObj->preAddService($notifier); | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| 
 | ||||
| 	if($settings->_enableEmail) { | ||||
| 		$notifier->addService(new SeedDMS_EmailNotify($dms)); | ||||
| 	} | ||||
| 
 | ||||
| 	if(isset($GLOBALS['SEEDDMS_HOOKS']['notification'])) { | ||||
| 		foreach($GLOBALS['SEEDDMS_HOOKS']['notification'] as $notificationObj) { | ||||
| 			if(method_exists($notificationObj, 'postAddService')) { | ||||
| 				$notificationObj->postAddService($notifier); | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| 	include $settings->_rootDir . "languages/" . $resArr["language"] . "/lang.inc"; | ||||
| } else { | ||||
| 	$user = null; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann