diff --git a/inc/inc.Notification.php b/inc/inc.Notification.php index 86eab8cbe..400740d9b 100644 --- a/inc/inc.Notification.php +++ b/inc/inc.Notification.php @@ -12,7 +12,7 @@ * @version Release: @package_version@ */ -$notifier = new SeedDMS_NotificationService($logger, $settings); +$notifier = new SeedDMS_NotificationService($logger, $settings, $translator); if(isset($GLOBALS['SEEDDMS_HOOKS']['notification'])) { foreach($GLOBALS['SEEDDMS_HOOKS']['notification'] as $notificationObj) { @@ -23,7 +23,7 @@ if(isset($GLOBALS['SEEDDMS_HOOKS']['notification'])) { } if($settings->_enableEmail) { - $notifier->addService(new SeedDMS_EmailNotify($dms, $settings->_smtpSendFrom, $settings->_smtpServer, $settings->_smtpPort, $settings->_smtpUser, $settings->_smtpPassword, $settings->_smtpLazySSL, $settings->_smtpForceFrom), 'email'); + $notifier->addService(new SeedDMS_EmailNotify($dms, $translator, $settings->_smtpSendFrom, $settings->_smtpServer, $settings->_smtpPort, $settings->_smtpUser, $settings->_smtpPassword, $settings->_smtpLazySSL, $settings->_smtpForceFrom), 'email'); } if(isset($GLOBALS['SEEDDMS_HOOKS']['notification'])) {