aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xphpBB/install/install_install.php23
1 files changed, 16 insertions, 7 deletions
diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php
index a8c74537f3..6572efbf70 100755
--- a/phpBB/install/install_install.php
+++ b/phpBB/install/install_install.php
@@ -1343,6 +1343,12 @@ class install_install extends module
{
global $db, $phpbb_root_path, $phpEx;
+ // Obtain any submitted data
+ foreach ($this->request_vars as $var)
+ {
+ $$var = request_var($var, '');
+ }
+
$sql = 'SELECT group_id
FROM ' . GROUPS_TABLE . "
WHERE group_name = 'BOTS'";
@@ -1364,13 +1370,16 @@ class install_install extends module
foreach ($this->bot_list as $bot_name => $bot_ary)
{
$user_row = array(
- 'user_type' => GROUP_HIDDEN,
- 'group_id' => $group_id,
- 'username' => $bot_name,
- 'user_regdate' => time(),
- 'user_password' => '',
- 'user_colour' => '9E8DA7',
- 'user_email' => ''
+ 'user_type' => GROUP_HIDDEN,
+ 'group_id' => $group_id,
+ 'username' => $bot_name,
+ 'user_regdate' => time(),
+ 'user_password' => '',
+ 'user_colour' => '9E8DA7',
+ 'user_email' => '',
+ 'user_lang' => $language,
+ 'user_style' => 1,
+ 'user_dateformat' => 'D M d, Y g:i a',
);
$user_id = user_add($user_row);