From 4137b196ae0ec2d4bedfa2f3bec55cdbdfa9ae77 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 3 Mar 2010 19:38:02 -0800 Subject: [PATCH] Update Account/Inbox plugin for new Asset instanciators and exceptions. --- lib/WebGUI/Account/Inbox.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/Account/Inbox.pm b/lib/WebGUI/Account/Inbox.pm index 906db6502..47bf74360 100644 --- a/lib/WebGUI/Account/Inbox.pm +++ b/lib/WebGUI/Account/Inbox.pm @@ -1350,8 +1350,8 @@ sub www_sendMessageSave { my $smsAddress = $user->getInboxSmsNotificationAddress; if ( $smsAddress && !$isSender ) { my $smsNotificationTemplate - = WebGUI::Asset::Template->new($session, $self->getInboxSmsNotificationTemplateId); - if ($smsNotificationTemplate) { + = WebGUI::Asset::Template->newById($session, $self->getInboxSmsNotificationTemplateId); + if (! Exception::Class->caught() ) { ##Create template variables my $var = { fromUsername => $fromUser->username,