Only make 1 i18n object.
This commit is contained in:
parent
9dcd7d4af2
commit
684d67fd37
1 changed files with 2 additions and 1 deletions
|
|
@ -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};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue