From 684d67fd374ad25b6f7580598b1058da42bda0e7 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 26 Feb 2009 15:25:43 -0800 Subject: [PATCH] Only make 1 i18n object. --- lib/WebGUI/Inbox/Message.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/WebGUI/Inbox/Message.pm b/lib/WebGUI/Inbox/Message.pm index 9cbcfbd19..5fd779e27 100644 --- a/lib/WebGUI/Inbox/Message.pm +++ b/lib/WebGUI/Inbox/Message.pm @@ -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};