summaryrefslogtreecommitdiff
path: root/LedgerSMB/Sysconfig.pm
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-10-08 05:02:21 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-10-08 05:02:21 +0000
commit31d92e4c9d00b42f4169baacd8fdc6c6325ff567 (patch)
tree868aefb9c731ecf33b72ea58240e62ec4c6c429c /LedgerSMB/Sysconfig.pm
parent8cdda6c118db985392ce19d8ae1d1a0788066ca7 (diff)
More authentication fixes.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1717 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB/Sysconfig.pm')
-rw-r--r--LedgerSMB/Sysconfig.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/LedgerSMB/Sysconfig.pm b/LedgerSMB/Sysconfig.pm
index b62651a6..f8f009e9 100644
--- a/LedgerSMB/Sysconfig.pm
+++ b/LedgerSMB/Sysconfig.pm
@@ -131,8 +131,8 @@ for $var (qw(DBhost DBport DBname DBUserName DBPassword)) {
# These lines prevent other apps in mod_perl from seeing the global db
# connection info
-my $globalDBConnect = undef;
-my $globalUserName = undef;
-my $globalPassword = undef;
+$ENV{PGHOST} = $config{database}{host};
+$ENV{PGPORT} = $config{database}{port};
+our $defaultdb = $config{database}{default_db};
1;