Only make 1 i18n object.

This commit is contained in:
Colin Kuskie 2009-02-26 15:25:43 -08:00
parent 9dcd7d4af2
commit 684d67fd37

View file

@ -104,9 +104,10 @@ sub create {
my $session = shift;
my $properties = shift;
my $self = {};
my $i18n = WebGUI::International->new('Inbox_Message');
$self->{_properties}{messageId} = "new";
$self->{_properties}{status} = $properties->{status} || "pending";
$self->{_properties}{subject} = $properties->{subject} || WebGUI::International->new($session)->get(523);
$self->{_properties}{subject} = $properties->{subject} || $i18n->get(523,'WebGUI');
$self->{_properties}{message} = $properties->{message};
$self->{_properties}{dateStamp} = time();
$self->{_properties}{userId} = $properties->{userId};