MT#5879 Include Countries.pm before Sipwise::Base.

Otherwise we get UTF8 issues on panel startup.
gjungwirth/voicemail_number
Andreas Granig 12 years ago
parent a47147fe89
commit fae332191a

@ -9,6 +9,7 @@ use NGCP::Panel::Form::Contact::Admin;
use NGCP::Panel::Utils::Message;
use NGCP::Panel::Utils::Navigation;
sub auto :Does(ACL) :ACLDetachTo('/denied_page') :AllowedRole(admin) :AllowedRole(reseller) {
my ($self, $c) = @_;
$c->log->debug(__PACKAGE__ . '::auto');

@ -1,4 +1,5 @@
package NGCP::Panel::Controller::Invoice;
use Geography::Countries qw/country/;
use Sipwise::Base;
use namespace::sweep;
BEGIN { extends 'Catalyst::Controller'; }
@ -9,7 +10,6 @@ use NGCP::Panel::Utils::Contract;
use NGCP::Panel::Utils::InvoiceTemplate;
use NGCP::Panel::Utils::Invoice;
use NGCP::Panel::Form::Invoice::Invoice;
use Geography::Countries qw/country/;
sub auto :Private {
my ($self, $c) = @_;

@ -11,7 +11,6 @@ use Email::MIME;
use Email::Sender::Simple qw(sendmail);
use Email::Sender::Transport::SMTP;
use Template;
use Geography::Countries qw/country/;
#use IO::All;
#apt-get install libemail-send-perl
@ -31,6 +30,8 @@ use NGCP::Panel::Utils::Invoice;
use NGCP::Panel::Utils::Email;
#use NGCP::Panel::View::SVG;
use Geography::Countries qw/country/;
my $debug = 0;
my ($dbuser, $dbpass);

Loading…
Cancel
Save