1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 12:03:21 +01:00

Fix 2 minor errors:

1. Set user_style on registration to the board default
2. Do not try to use the template when throwing an error about a missing style


git-svn-id: file:///svn/phpbb/trunk@5426 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Graham Eames 2006-01-05 20:28:29 +00:00
parent 7174244446
commit 479f95661e
2 changed files with 2 additions and 1 deletions

View File

@ -786,7 +786,7 @@ class user extends session
if (!$this->theme) if (!$this->theme)
{ {
trigger_error('Could not get style data'); trigger_error('Could not get style data', E_USER_ERROR);
} }
// Now parse the cfg file and cache it // Now parse the cfg file and cache it

View File

@ -240,6 +240,7 @@ class ucp_register
'group_id' => (int) $group_id, 'group_id' => (int) $group_id,
'user_timezone' => (float) $tz, 'user_timezone' => (float) $tz,
'user_lang' => $lang, 'user_lang' => $lang,
'user_style' => $config['default_style'],
'user_allow_pm' => 1, 'user_allow_pm' => 1,
'user_type' => $user_type, 'user_type' => $user_type,
'user_actkey' => $user_actkey, 'user_actkey' => $user_actkey,