bugfix [ 845046 ] Forum notification - no int. message at all
This commit is contained in:
parent
d8f796fe91
commit
50ebd60856
2 changed files with 8 additions and 5 deletions
|
|
@ -13,6 +13,7 @@
|
|||
- Fixed bug [ 844961 ] DataForm: no deleting
|
||||
- Bugfix [ 822324 ]: From field not working in DataForm when mailing to group
|
||||
- Fixed typos in importCollateral.pl
|
||||
- Fixed bug [ 845046 ] Forum notification - no int. message at all
|
||||
|
||||
|
||||
5.5.1
|
||||
|
|
|
|||
|
|
@ -1371,14 +1371,16 @@ sub notifySubscribers {
|
|||
my %lang;
|
||||
foreach my $userId (keys %subscribers) {
|
||||
my $u = WebGUI::User->new($userId);
|
||||
unless (exists $lang{$u->profileField("language")}) {
|
||||
if ($lang{$u->profileField("language")}{message} eq "") {
|
||||
$lang{$u->profileField("language")}{var} = {
|
||||
'notify.subscription.message' => WebGUI::International::get(875,$u->profileField("language"))
|
||||
'notify.subscription.message' => WebGUI::International::get(875,"WebGUI",$u->profileField("language"))
|
||||
};
|
||||
$lang{$u->profileField("language")}{var} = getPostTemplateVars($post, $thread, $forum, $caller, $lang{$u->profileField("language")}{var});
|
||||
$lang{$u->profileField("language")}{subject} = WebGUI::International::get(523,$u->profileField("language"));
|
||||
$lang{$u->profileField("language")}{message} = WebGUI::Template::process(WebGUI::Template::get($forum->get("notificationTemplateId"),"Forum/Notification"),
|
||||
$lang{$u->profileField("language")}{var});
|
||||
$lang{$u->profileField("language")}{subject} = WebGUI::International::get(523,"WebGUI",$u->profileField("language"));
|
||||
$lang{$u->profileField("language")}{message} = WebGUI::Template::process(
|
||||
WebGUI::Template::get($forum->get("notificationTemplateId"),"Forum/Notification"),
|
||||
$lang{$u->profileField("language")}{var}
|
||||
);
|
||||
}
|
||||
WebGUI::MessageLog::addEntry($userId,"",$lang{$u->profileField("language")}{subject},$lang{$u->profileField("language")}{message});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue