diff --git a/lib/NGCP/Panel/Controller/EmailTemplate.pm b/lib/NGCP/Panel/Controller/EmailTemplate.pm index c4ea0b319f..16d50c819f 100644 --- a/lib/NGCP/Panel/Controller/EmailTemplate.pm +++ b/lib/NGCP/Panel/Controller/EmailTemplate.pm @@ -238,7 +238,7 @@ sub check_template_id :Private { NGCP::Panel::Utils::Message::error( c => $c, log => 'Invalid email template id detected', - desc => $c->log('Invalid email template id detected'), + desc => $c->loc('Invalid email template id detected'), ); $c->response->redirect($c->uri_for()); $c->detach; diff --git a/lib/NGCP/Panel/Controller/InvoiceTemplate.pm b/lib/NGCP/Panel/Controller/InvoiceTemplate.pm index d23b3fa105..f0eb1d0906 100644 --- a/lib/NGCP/Panel/Controller/InvoiceTemplate.pm +++ b/lib/NGCP/Panel/Controller/InvoiceTemplate.pm @@ -217,7 +217,7 @@ sub edit_info :Chained('base') :PathPart('editinfo') { if($dup_item && $dup_item->id != $tmpl->id) { die( ["Template name should be unique", "showdetails"] ); } - + $tmpl->update($form->values); delete $c->session->{created_objects}->{reseller}; @@ -298,7 +298,7 @@ sub set_content_ajax :Chained('base') :PathPart('editcontent/set/ajax') :Args(0) NGCP::Panel::Utils::Message::error( c => $c, error => 'empty svg file not allowed', - desc => $c->log('Attempted to save an empty invoice template'), + desc => $c->loc('Attempted to save an empty invoice template'), ); return; } @@ -387,7 +387,7 @@ sub preview_content :Chained('base') :PathPart('editcontent/preview') :Args { sub embed_image :Chained('/') :PathPart('invoicetemplate/embedimage') :Args(0) { my ($self, $c) = @_; - + my ($in, $out); $in = $c->request->parameters; $in->{svg_file} = $c->request->upload('svg_file'); @@ -404,7 +404,7 @@ sub embed_image :Chained('/') :PathPart('invoicetemplate/embedimage') :Args(0) { $c->stash(in => $in); $c->stash(template => 'invoice/template_editor_aux_embedimage.tt'); $c->detach( $c->view('TT') ); - + } diff --git a/lib/NGCP/Panel/Controller/MaliciousCall.pm b/lib/NGCP/Panel/Controller/MaliciousCall.pm index 09f4b96d37..589372c556 100644 --- a/lib/NGCP/Panel/Controller/MaliciousCall.pm +++ b/lib/NGCP/Panel/Controller/MaliciousCall.pm @@ -75,7 +75,7 @@ sub base :Chained('mcid_list') :PathPart('') :CaptureArgs(1) { NGCP::Panel::Utils::Message::error( c => $c, log => 'Invalid malicious call id detected', - desc => $c->log('Invalid malicious call id detected'), + desc => $c->loc('Invalid malicious call id detected'), ); $c->response->redirect($c->uri_for()); $c->detach; @@ -87,7 +87,7 @@ sub base :Chained('mcid_list') :PathPart('') :CaptureArgs(1) { NGCP::Panel::Utils::Message::error( c => $c, log => 'Malicious call does not exist', - desc => $c->log('Malicious call does not exist'), + desc => $c->loc('Malicious call does not exist'), ); $c->response->redirect($c->uri_for()); $c->detach;