summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-22 15:26:58 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-22 15:26:58 +0000
commit6c7a8f8ea724517cff557b6f83ad2bacca3ad5c5 (patch)
tree7ae85b53107873c207d4a45347ed702288829199 /LedgerSMB
parentcdbefd15b6b8a32e8b1b09c97b9051ec82821b96 (diff)
Adding an images directory
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@685 4979c152-3d1c-0410-bac9-87ea11338e46
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};