pass $dms to preAddService() and postAddService()

This commit is contained in:
Uwe Steinmann 2018-02-07 18:58:56 +01:00
parent f01099fedf
commit a36f5721dd

View File

@ -98,7 +98,7 @@ $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);
$notificationObj->preAddService($dms, $notifier);
}
}
}
@ -110,7 +110,7 @@ if($settings->_enableEmail) {
if(isset($GLOBALS['SEEDDMS_HOOKS']['notification'])) {
foreach($GLOBALS['SEEDDMS_HOOKS']['notification'] as $notificationObj) {
if(method_exists($notificationObj, 'postAddService')) {
$notificationObj->postAddService($notifier);
$notificationObj->postAddService($dms, $notifier);
}
}
}