diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-10-24 00:01:16 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-10-24 00:01:16 +0000 |
commit | c3c9871298597e417d67f691fca24cd913ef802a (patch) | |
tree | c743f476ab241b97069518fbd90f89a1f2ae5f00 /LedgerSMB/IS.pm | |
parent | 0dc5b99d6e3bd63c2e20e131b39b38503add2dc0 (diff) |
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
Diffstat (limited to 'LedgerSMB/IS.pm')
-rwxr-xr-x | LedgerSMB/IS.pm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/LedgerSMB/IS.pm b/LedgerSMB/IS.pm index 0b38b3a8..96aafdac 100755 --- a/LedgerSMB/IS.pm +++ b/LedgerSMB/IS.pm @@ -1224,7 +1224,7 @@ sub reverse_invoice { sub delete_invoice { - my ($self, $myconfig, $form, $spool) = @_; + my ($self, $myconfig, $form, ${LedgerSMB::Sysconfig::spool}) = @_; # connect to database my $dbh = $form->dbconnect_noauto($myconfig); @@ -1251,11 +1251,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; @@ -1267,8 +1267,8 @@ sub delete_invoice { my $rc = $dbh->commit; if ($rc) { - foreach $spoolfile (@spoolfiles) { - unlink "$spool/$spoolfile" if $spoolfile; + foreach ${LedgerSMB::Sysconfig::spool}file (@spoolfiles) { + unlink "${LedgerSMB::Sysconfig::spool}/$spoolfile" if $spoolfile; } } |