diff options
Diffstat (limited to 'LedgerSMB')
-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 = $!; |