From db5c147da18d5a3480b2e710b9ff51b0bf490614 Mon Sep 17 00:00:00 2001 From: Kirill Solomko <ksolomko@sipwise.com> Date: Thu, 18 Jan 2018 14:32:50 +0100 Subject: [PATCH] TT#30650 fix DbString $c declaration * $c is declared as a passed argument in DbString functions Change-Id: I34ee1cf2bbbbd95f1145c787fddd7af556f648d6 --- lib/NGCP/Panel/Utils/DbStrings.pm | 4 ++-- script/ngcp_panel_dump_db_strings.pl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/NGCP/Panel/Utils/DbStrings.pm b/lib/NGCP/Panel/Utils/DbStrings.pm index b620a94e06..b295842ce0 100644 --- a/lib/NGCP/Panel/Utils/DbStrings.pm +++ b/lib/NGCP/Panel/Utils/DbStrings.pm @@ -4,7 +4,7 @@ use warnings; use strict; sub localize { - my $c; + my $c = shift; $c->loc('Lock Level'); $c->loc('See "lock_voip_account_subscriber" for a list of possible values. A lock value of "none" will not be returned to the caller. Read-only setting.'); @@ -196,7 +196,7 @@ sub localize { } sub form_strings { - my $c; + my $c = shift; #NGCP::Panel::Form::BillingFee #NGCP::Panel::Form::BillingFeeUpload diff --git a/script/ngcp_panel_dump_db_strings.pl b/script/ngcp_panel_dump_db_strings.pl index 7485056b3d..acb4ea74b8 100755 --- a/script/ngcp_panel_dump_db_strings.pl +++ b/script/ngcp_panel_dump_db_strings.pl @@ -24,7 +24,7 @@ use warnings; use strict; sub localize { - my $c; + my $c = shift; HEADER_END