Update Account/Inbox plugin for new Asset instanciators and exceptions.
This commit is contained in:
parent
a62e7b7ed0
commit
4137b196ae
1 changed files with 2 additions and 2 deletions
|
|
@ -1350,8 +1350,8 @@ sub www_sendMessageSave {
|
||||||
my $smsAddress = $user->getInboxSmsNotificationAddress;
|
my $smsAddress = $user->getInboxSmsNotificationAddress;
|
||||||
if ( $smsAddress && !$isSender ) {
|
if ( $smsAddress && !$isSender ) {
|
||||||
my $smsNotificationTemplate
|
my $smsNotificationTemplate
|
||||||
= WebGUI::Asset::Template->new($session, $self->getInboxSmsNotificationTemplateId);
|
= WebGUI::Asset::Template->newById($session, $self->getInboxSmsNotificationTemplateId);
|
||||||
if ($smsNotificationTemplate) {
|
if (! Exception::Class->caught() ) {
|
||||||
##Create template variables
|
##Create template variables
|
||||||
my $var = {
|
my $var = {
|
||||||
fromUsername => $fromUser->username,
|
fromUsername => $fromUser->username,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue