From 77333e5167e1be6eaa9239166f337bff206e6f05 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 6 Apr 2003 12:46:49 +0000 Subject: [PATCH] set dbhost to localhost by default. this will prevent users forgetting to enter this setting and localhost is in 90% of the cases correct. git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3791 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/install/install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/install/install.php b/phpBB/install/install.php index b045b8eda8..9d11119731 100644 --- a/phpBB/install/install.php +++ b/phpBB/install/install.php @@ -370,7 +370,7 @@ $upgrade_now = (!empty($HTTP_POST_VARS['upgrade_now'])) ? $HTTP_POST_VARS['upgra $dbms = isset($HTTP_POST_VARS['dbms']) ? $HTTP_POST_VARS['dbms'] : ''; -$dbhost = (!empty($HTTP_POST_VARS['dbhost'])) ? $HTTP_POST_VARS['dbhost'] : ''; +$dbhost = (!empty($HTTP_POST_VARS['dbhost'])) ? $HTTP_POST_VARS['dbhost'] : 'localhost'; $dbuser = (!empty($HTTP_POST_VARS['dbuser'])) ? $HTTP_POST_VARS['dbuser'] : ''; $dbpasswd = (!empty($HTTP_POST_VARS['dbpasswd'])) ? $HTTP_POST_VARS['dbpasswd'] : ''; $dbname = (!empty($HTTP_POST_VARS['dbname'])) ? $HTTP_POST_VARS['dbname'] : '';