pass logger to Authentication Service

This commit is contained in:
Uwe Steinmann 2021-01-28 21:09:11 +01:00
parent d0c1b16332
commit fdde3e29c5
2 changed files with 3 additions and 2 deletions

View File

@ -95,7 +95,8 @@ if($settings->_useHomeAsRootFolder && !$user->isAdmin() && $user->getHomeFolder(
$dms->setRootFolderID($user->getHomeFolder());
}
$notifier = new SeedDMS_NotificationService();
global $logger;
$notifier = new SeedDMS_NotificationService($logger);
if(isset($GLOBALS['SEEDDMS_HOOKS']['notification'])) {
foreach($GLOBALS['SEEDDMS_HOOKS']['notification'] as $notificationObj) {

View File

@ -27,7 +27,7 @@ if($settings->_logFileEnable) {
$log = null;
}
$notifier = new SeedDMS_NotificationService();
$notifier = new SeedDMS_NotificationService($log);
if(isset($GLOBALS['SEEDDMS_HOOKS']['notification'])) {
foreach($GLOBALS['SEEDDMS_HOOKS']['notification'] as $notificationObj) {