From fbe303ea2687e3c570e96b5313ee66309182591a Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 22 Mar 2005 00:42:56 +0000 Subject: [PATCH] fix overwrite of internationalized notification message due to assignment of template variables --- lib/WebGUI/Asset/Post.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/WebGUI/Asset/Post.pm b/lib/WebGUI/Asset/Post.pm index cd32d3310..bea0a269e 100644 --- a/lib/WebGUI/Asset/Post.pm +++ b/lib/WebGUI/Asset/Post.pm @@ -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")); }