From c3c9871298597e417d67f691fca24cd913ef802a Mon Sep 17 00:00:00 2001 From: einhverfr Date: Tue, 24 Oct 2006 00:01:16 +0000 Subject: Moved all scalars out of ledger-smb.conf git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@268 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/IR.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'LedgerSMB/IR.pm') diff --git a/LedgerSMB/IR.pm b/LedgerSMB/IR.pm index 9f2da830..d2703958 100755 --- a/LedgerSMB/IR.pm +++ b/LedgerSMB/IR.pm @@ -703,11 +703,11 @@ sub delete_invoice { my $sth = $dbh->prepare($query); $sth->execute || $form->dberror($query); - my $spoolfile; + my ${LedgerSMB::Sysconfig::spool}file; my @spoolfiles = (); - while (($spoolfile) = $sth->fetchrow_array) { - push @spoolfiles, $spoolfile; + while ((${LedgerSMB::Sysconfig::spool}file) = $sth->fetchrow_array) { + push @spoolfiles, ${LedgerSMB::Sysconfig::spool}file; } $sth->finish; @@ -728,8 +728,8 @@ sub delete_invoice { $dbh->commit; } - foreach $spoolfile (@spoolfiles) { - unlink "$spool/$spoolfile" if $spoolfile; + foreach ${LedgerSMB::Sysconfig::spool}file (@spoolfiles) { + unlink "${LedgerSMB::Sysconfig::spool}/$spoolfile" if $spoolfile; } } -- cgit v1.2.3