summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LedgerSMB/Sysconfig.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/LedgerSMB/Sysconfig.pm b/LedgerSMB/Sysconfig.pm
index 9e4cf308..3c5cb348 100644
--- a/LedgerSMB/Sysconfig.pm
+++ b/LedgerSMB/Sysconfig.pm
@@ -53,10 +53,6 @@ my $globalDBConnect = 'dbi:Pg:dbname=ledgersmb;host=localhost;port=5432';
my $globalUserName = "ledgersmb";
my $globalPassword = "set me to correct password";
-
-# These lines prevent other apps in mod_perl from seeing the global db
-# connection info
-
eval { require "ledger-smb.conf"; };
if ($@){
print STDERR "Parsing ledger-smb.conf failed: $@";
@@ -64,6 +60,9 @@ if ($@){
#$GLOBALDBH = DBI->connect($globalDBConnect, $globalDBUserName, $globalDBPassword);
+# These lines prevent other apps in mod_perl from seeing the global db
+# connection info
+
my $globalDBConnect = undef;
my $globalUserName = undef;
my $globalPassword = undef;