diff options
author | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-11-19 02:59:53 +0000 |
---|---|---|
committer | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-11-19 02:59:53 +0000 |
commit | 94a02a82c8c836384712148d3ccb61696301a4b7 (patch) | |
tree | 8bab86bdb54ec6760ac336bedad26ba8b7038a82 | |
parent | 1d63828b505d55a0bd4910ade9ec13e05a37c3ac (diff) |
Fix cleanup of LaTeX temporary files when userspath absolute
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@662 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-x | LedgerSMB/Form.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index 6617edcd..ae67080c 100755 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -813,6 +813,8 @@ sub parse_template { use Cwd; $self->{cwd} = cwd(); $self->{tmpdir} = "$self->{cwd}/${LedgerSMB::Sysconfig::userspath}"; + $self->{tmpdir} = "${LedgerSMB::Sysconfig::userspath}" if + ${LedgerSMB::Sysconfig::userspath} =~ /^\//; unless (chdir("${LedgerSMB::Sysconfig::userspath}")) { $err = $!; |