mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 15:45:34 +02:00
Fix installation and user registration bugs
git-svn-id: file:///svn/phpbb/trunk@6156 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
62230baffd
commit
811b63baab
@ -243,7 +243,7 @@ function user_add($user_row, $cp_data = false)
|
||||
group_set_user_default($user_row['group_id'], array($user_id));
|
||||
|
||||
// set the newest user and adjust the user count if the user is a normal user and no activation mail is sent
|
||||
if ($user_row['user_type'] == USER_NORMAL || !$config['email_enable'])
|
||||
if ($user_row['user_type'] == USER_NORMAL && !$config['require_activation'])
|
||||
{
|
||||
set_config('newest_user_id', $user_id, true);
|
||||
set_config('newest_username', $user_row['username'], true);
|
||||
|
@ -1478,6 +1478,7 @@ class install_install extends module
|
||||
'user_email' => '',
|
||||
'user_lang' => $language,
|
||||
'user_style' => 1,
|
||||
'user_timezone' => 0,
|
||||
'user_dateformat' => $lang['default_dateformat'],
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user