aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/ModulesNotification.class.php
diff options
context:
space:
mode:
authorThomas Hackl <hackl@data-quest.de>2024-04-05 09:21:03 +0000
committerThomas Hackl <hackl@data-quest.de>2024-04-05 09:21:03 +0000
commit813b98c13dc5c44aff3132d7919c73b652b0a7da (patch)
tree02cc86756788fa8ddb80f63fbeee982006a8fd14 /lib/classes/ModulesNotification.class.php
parentce29a764567cfdd792e1fe7b5e0bfb06d2f278e3 (diff)
Resolve "Layout der HTML-Mails"
Closes #2350 Merge request studip/studip!2686
Diffstat (limited to 'lib/classes/ModulesNotification.class.php')
-rw-r--r--lib/classes/ModulesNotification.class.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/classes/ModulesNotification.class.php b/lib/classes/ModulesNotification.class.php
index 324b5c5..3ee6642 100644
--- a/lib/classes/ModulesNotification.class.php
+++ b/lib/classes/ModulesNotification.class.php
@@ -142,12 +142,15 @@ class ModulesNotification
}
}
if (count($news)) {
- $auth_plugin = User::find($user_id)->auth_plugin;
+ $user = User::find($user_id);
+ $auth_plugin = $user->auth_plugin;
if (!is_a('StudipAuth' . ucfirst($auth_plugin), 'StudipAuthSSO', true)) {
$auth_plugin = null;
}
$template = $GLOBALS['template_factory']->open('mail/notification_html');
$template->set_attribute('lang', getUserLanguagePath($user_id));
+ $template->set_attribute('rec_fullname', $user->getFullname('full'));
+ $template->set_attribute('rec_username', $user->username);
$template->set_attribute('news', $news);
$template->set_attribute('sso', $auth_plugin);