summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/Form.pm1
-rw-r--r--LedgerSMB/Sysconfig.pm4
2 files changed, 5 insertions, 0 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index 92d0b081..1aa65f32 100755
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -572,6 +572,7 @@ sub parse_template {
my %include = ();
my $ok;
+ $self->{images} = "${LedgerSMB::Sysconfig::images}/$self->{templates}";
if ($self->{language_code}) {
diff --git a/LedgerSMB/Sysconfig.pm b/LedgerSMB/Sysconfig.pm
index 91fe33b3..d7d708a4 100644
--- a/LedgerSMB/Sysconfig.pm
+++ b/LedgerSMB/Sysconfig.pm
@@ -33,6 +33,9 @@ $spool = "spool";
# path to user configuration files
$userspath = "users";
+# images base directory
+$images = "images";
+
# templates base directory
$templates = "templates";
@@ -85,6 +88,7 @@ $userspath = $config{paths}{userspath} if $config{paths}{userspath};
$localepath = $config{paths}{localepath} if $config{paths}{localepath};
$spool = $config{paths}{spool} if $config{paths}{spool};
$templates = $config{paths}{templates} if $config{paths}{templates};
+$images = $config{paths}{images} if $config{paths}{images};
$gzip = $config{programs}{gzip} if $config{programs}{gzip};