summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-19 02:59:27 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-19 02:59:27 +0000
commit3e32b510183e1db4b892a0ddfb372a9e9320781e (patch)
treecd00957b17d69d1e2c1cbe14f5836aa113eb243b
parent1321b7d816f202790b621a7c0d782c1a99a17bcb (diff)
Fix cleanup of LaTeX temporary files when userspath absolute
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@661 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-xLedgerSMB/Form.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index 9ef76258..dd3db02c 100755
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -821,6 +821,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 = $!;