diff options
Diffstat (limited to 'LedgerSMB/BP.pm')
-rwxr-xr-x | LedgerSMB/BP.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/LedgerSMB/BP.pm b/LedgerSMB/BP.pm index c5f46fa8..c69a3a92 100755 --- a/LedgerSMB/BP.pm +++ b/LedgerSMB/BP.pm @@ -244,7 +244,7 @@ sub get_spoolfiles { sub delete_spool { - my ($self, $myconfig, $form, ${LedgerSMB::Sysconfig::spool}) = @_; + my ($self, $myconfig, $form) = @_; # connect to database, turn AutoCommit off my $dbh = $form->dbconnect_noauto($myconfig); @@ -293,7 +293,7 @@ sub delete_spool { sub print_spool { - my ($self, $myconfig, $form, ${LedgerSMB::Sysconfig::spool}) = @_; + my ($self, $myconfig, $form) = @_; # connect to database my $dbh = $form->dbconnect_noauto($myconfig); @@ -312,10 +312,10 @@ sub print_spool { open(OUT, $form->{OUT}) or $form->error("$form->{OUT} : $!"); binmode(OUT); - ${LedgerSMB::Sysconfig::spool}file = qq|$spool/$form->{"spoolfile_$i"}|; + $spoolfile = qq|$spool/$form->{"spoolfile_$i"}|; # send file to printer - open(IN, ${LedgerSMB::Sysconfig::spool}file) or $form->error("$spoolfile : $!"); + open(IN, $spoolfile) or $form->error("$spoolfile : $!"); binmode(IN); while (<IN>) { |