mirror of
https://git.code.sf.net/p/seeddms/code
synced 2026-01-29 20:49:17 +00:00
pass translator to notification service and services
This commit is contained in:
parent
b4ced679d0
commit
767235f0f5
|
|
@ -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'])) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user