if ($self->{media} eq 'email') {
- my $mail = new Mailer;
+ my $mail = Mailer->new;
map { $mail->{$_} = $self->{$_} }
qw(cc bcc subject message version format);
$form->{type} = "invoice";
# locale messages
- $main::locale = new Locale "$myconfig{countrycode}", "$script";
+ $main::locale = Locale->new("$myconfig{countrycode}", "$script");
$locale = $main::locale;
require "bin/mozilla/$form->{script}";
}
delete $form->{form_details};
- $locale = new Locale "$myconfig{countrycode}", "$script";
+ $locale = Locale->new("$myconfig{countrycode}", "$script");
require "bin/mozilla/$form->{script}";
use SL::Locale;
- my $locale = new Locale($::lx_office_conf{system}->{language}, "installationcheck");
+ my $locale = Locale->new($::lx_office_conf{system}->{language}, "installationcheck");
print(qq|content-type: text/html
my $script = $form->{"script"};
$script =~ s|.*/||;
$script =~ s|.pl$||;
- $locale = new Locale($::lx_office_conf{system}->{language}, $script);
+ $locale = Locale->new($::lx_office_conf{system}->{language}, $script);
map { $form->{"select$_"} = "" } ($form->{vc}, "currency");
$form->error($locale->text('Select postscript or PDF!'))
if ($form->{format} !~ /(postscript|pdf)/);
- $old_form = new Form;
+ $old_form = Form->new;
map { $old_form->{$_} = $form->{$_} } keys %$form;
}
$main::auth->assert('invoice_edit');
- my $old_form = new Form;
+ my $old_form = Form->new;
$form->{no_redirect_after_post} = 1;
$form->{print_and_post} = 1;
&post();
$main::auth->assert('invoice_edit');
$form->{preview} = 1;
- my $old_form = new Form;
+ my $old_form = Form->new;
for (keys %$form) { $old_form->{$_} = $form->{$_} }
&print_form($old_form);
$form->{type} = "invoice";
# locale messages
- $main::locale = new Locale "$myconfig{countrycode}", "$script";
+ $main::locale = Locale->new("$myconfig{countrycode}", "$script");
$locale = $main::locale;
require "bin/mozilla/$form->{script}";