aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/ModulesNotification.class.php
diff options
context:
space:
mode:
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);