From ebe8c6d3b944ab728dbc23febd273930e2e85a46 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Wed, 27 Jul 2011 14:24:34 +0200 Subject: [PATCH] default prefix value "chamilo_" when installing chamilo see #3736 --- main/install/index.php | 22 +++++++++------------- main/install/install.lib.php | 8 +++----- 2 files changed, 12 insertions(+), 18 deletions(-) diff --git a/main/install/index.php b/main/install/index.php index 797867e035..41e36ef226 100755 --- a/main/install/index.php +++ b/main/install/index.php @@ -209,18 +209,18 @@ if ($installType == 'update' && in_array($my_old_version, $update_from_version_8 if (!isset($_GET['running'])) { $dbHostForm = 'localhost'; - $dbUsernameForm = 'root'; + $dbUsernameForm = 'root'; $dbPassForm = ''; - $dbPrefixForm = ''; + $dbPrefixForm = ''; $dbNameForm = 'chamilo_main'; - $dbStatsForm = 'chamilo_main'; - $dbScormForm = 'chamilo_main'; + $dbStatsForm = 'chamilo_main'; + $dbScormForm = 'chamilo_main'; $dbUserForm = 'chamilo_main'; // Extract the path to append to the url if Chamilo is not installed on the web root directory. - $urlAppendPath = api_remove_trailing_slash(api_get_path(REL_PATH)); - $urlForm = api_get_path(WEB_PATH); - $pathForm = api_get_path(SYS_PATH); + $urlAppendPath = api_remove_trailing_slash(api_get_path(REL_PATH)); + $urlForm = api_get_path(WEB_PATH); + $pathForm = api_get_path(SYS_PATH); $emailForm = $_SERVER['SERVER_ADMIN']; $email_parts = explode('@', $emailForm); @@ -536,18 +536,14 @@ if ($encryptPassForm == '1') { '; echo get_lang('DBSettingUpgradeIntro'); echo ''; - } else { - + } else { if (empty($dbPrefixForm)) { //make sure there is a default value for db prefix - //$dbPrefixForm = 'chamilo_'; + $dbPrefixForm = 'chamilo_'; } echo '

' . display_step_sequence() .get_lang('DBSetting') . '

'; echo '
'; @@ -1664,8 +1663,7 @@ function display_database_settings_form($installType, $dbHostForm, $dbUsernameFo //database prefix display_database_parameter($installType, get_lang('DbPrefixForm'), 'dbPrefixForm', $dbPrefixForm, get_lang('DbPrefixCom')); - //fields for the four standard Chamilo databases - + //fields for the four standard Chamilo databases if ($installType != INSTALL_TYPE_UPDATE) { echo ''; echo 'show-hide '.get_lang('OptionalParameters', '').'';