diff options
Diffstat (limited to 'phpBB/install')
| -rwxr-xr-x | phpBB/install/index.php | 2 | ||||
| -rwxr-xr-x | phpBB/install/install_install.php | 12 |
2 files changed, 9 insertions, 5 deletions
diff --git a/phpBB/install/index.php b/phpBB/install/index.php index c6aa392f0f..a71d6c9da5 100755 --- a/phpBB/install/index.php +++ b/phpBB/install/index.php @@ -102,7 +102,7 @@ include($phpbb_root_path . 'includes/auth.' . $phpEx); include($phpbb_root_path . 'includes/session.'.$phpEx); include($phpbb_root_path . 'includes/template.'.$phpEx); include($phpbb_root_path . 'includes/acm/acm_file.'.$phpEx); -include($phpbb_root_path . 'includes/acm/acm_main.'.$phpEx); +include($phpbb_root_path . 'includes/cache.'.$phpEx); include($phpbb_root_path . 'includes/functions_admin.'.$phpEx); // Try and load an appropriate language if required diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php index 6572efbf70..486e89b233 100755 --- a/phpBB/install/install_install.php +++ b/phpBB/install/install_install.php @@ -1035,6 +1035,10 @@ class install_install extends module WHERE config_name = 'cookie_domain'", 'UPDATE ' . $table_prefix . "config + SET config_value = '" . $db->sql_escape($lang['default_dateformat']) . "' + WHERE config_name = 'default_dateformat'", + + 'UPDATE ' . $table_prefix . "config SET config_value = '" . $db->sql_escape($email_enable) . "' WHERE config_name = 'email_enable'", @@ -1083,7 +1087,7 @@ class install_install extends module WHERE config_name = 'newest_username'", 'UPDATE ' . $table_prefix . "users - SET username = '" . $db->sql_escape($admin_name) . "', user_password='" . $db->sql_escape(md5($admin_pass1)) . "', user_lang = '" . $db->sql_escape($language) . "', user_email='" . $db->sql_escape($board_email1) . "' + SET username = '" . $db->sql_escape($admin_name) . "', user_password='" . $db->sql_escape(md5($admin_pass1)) . "', user_lang = '" . $db->sql_escape($language) . "', user_email='" . $db->sql_escape($board_email1) . "', user_dateformat='" . $db->sql_escape($lang['default_dateformat']) . "' WHERE username = 'Admin'", 'UPDATE ' . $table_prefix . "moderator_cache @@ -1341,7 +1345,7 @@ class install_install extends module */ function add_bots($mode, $sub) { - global $db, $phpbb_root_path, $phpEx; + global $db, $lang, $phpbb_root_path, $phpEx; // Obtain any submitted data foreach ($this->request_vars as $var) @@ -1379,7 +1383,7 @@ class install_install extends module 'user_email' => '', 'user_lang' => $language, 'user_style' => 1, - 'user_dateformat' => 'D M d, Y g:i a', + 'user_dateformat' => $lang['default_dateformat'], ); $user_id = user_add($user_row); @@ -1387,7 +1391,7 @@ class install_install extends module if (!$user_id) { // If we can't insert this user then continue to the next one to avoid inconsistant data - $this->p_master->db_error('Unable to insert bot into users table', $sql, __LINE__, __FILE__, true); + $this->p_master->db_error('Unable to insert bot into users table', $db->sql_error_sql, __LINE__, __FILE__, true); continue; } |
