From 8a86b3b7673fdeca40cbeab8be4456887e83a177 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 3 Jan 2011 16:09:45 +0100 Subject: [PATCH] Datenbankadministration: Verbindungsinformationen mit Daten aus config/authentication.pl vorbelegen Betrifft Hostnamen, Port und Datenbankbenutzer. Datenbankvorlage bleibt auf 'template1'. --- bin/mozilla/admin.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/mozilla/admin.pl b/bin/mozilla/admin.pl index 2819da00e..7bb498c6e 100755 --- a/bin/mozilla/admin.pl +++ b/bin/mozilla/admin.pl @@ -650,10 +650,10 @@ sub dbselect_source { my $form = $main::form; my $locale = $main::locale; - $form->{dbport} = '5432'; - $form->{dbuser} = 'lxoffice'; + $form->{dbport} = $::auth->{DB_config}->{port} || 5432; + $form->{dbuser} = $::auth->{DB_config}->{user} || 'lxoffice'; $form->{dbdefault} = 'template1'; - $form->{dbhost} = 'localhost'; + $form->{dbhost} = $::auth->{DB_config}->{host} || 'localhost'; $form->{title} = "Lx-Office ERP / " . $locale->text('Database Administration'); -- 2.20.1