fix overwrite of internationalized notification message due to assignment of template variables
This commit is contained in:
parent
09d8db0afa
commit
fbe303ea26
1 changed files with 2 additions and 3 deletions
|
|
@ -601,11 +601,10 @@ sub notifySubscribers {
|
|||
foreach my $userId (keys %subscribers) {
|
||||
my $u = WebGUI::User->new($userId);
|
||||
if ($lang{$u->profileField("language")}{message} eq "") {
|
||||
$lang{$u->profileField("language")}{var} = {
|
||||
'notify.subscription.message' => WebGUI::International::get(875,"WebGUI",$u->profileField("language"))
|
||||
};
|
||||
$lang{$u->profileField("language")}{var} = $self->getTemplateVars($lang{$u->profileField("language")}{var});
|
||||
$lang{$u->profileField("language")}{var}{url} = WebGUI::URL::getSiteURL().$self->getUrl;
|
||||
$lang{$u->profileField("language")}{var}{'notify.subscription.message'} =
|
||||
WebGUI::International::get(875,"WebGUI",$u->profileField("language"));
|
||||
$lang{$u->profileField("language")}{subject} = WebGUI::International::get(523,"WebGUI",$u->profileField("language"));
|
||||
$lang{$u->profileField("language")}{message} = $self->processTemplate($lang{$u->profileField("language")}{var}, $self->getThread->getParent->get("notificationTemplateId"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue