summaryrefslogtreecommitdiff
path: root/LedgerSMB/Form.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/Form.pm')
-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 = $!;