mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 14:28:56 +00:00
Fixed isset and empty checks on userdata so user prefs now work again
git-svn-id: file:///svn/phpbb/trunk@468 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
36da30d221
commit
ff8040ab06
1 changed files with 20 additions and 18 deletions
|
@ -201,6 +201,9 @@ function init_userprefs($userdata)
|
||||||
{
|
{
|
||||||
$theme = setuptheme($board_config['override_user_themes']);
|
$theme = setuptheme($board_config['override_user_themes']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($userdata['user_id'] != ANONYMOUS || $userdata['user_id'] != DELETED)
|
||||||
|
{
|
||||||
if(!empty($userdata['user_lang']))
|
if(!empty($userdata['user_lang']))
|
||||||
{
|
{
|
||||||
$board_config['default_lang'] = $userdata['user_lang'];
|
$board_config['default_lang'] = $userdata['user_lang'];
|
||||||
|
@ -213,16 +216,15 @@ function init_userprefs($userdata)
|
||||||
{
|
{
|
||||||
$board_config['default_timezone'] = $userdata['user_timezone'];
|
$board_config['default_timezone'] = $userdata['user_timezone'];
|
||||||
}
|
}
|
||||||
// Setup user's Template
|
|
||||||
if(!empty($userdata['user_template']))
|
if(!empty($userdata['user_template']))
|
||||||
{
|
{
|
||||||
$template = new Template("templates/".$userdata['user_template']);
|
$board_config['default_template'] = $userdata['user_template'];
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
$template = new Template("templates/".$board_config['default_template']);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Setup user's Template
|
||||||
|
$template = new Template("templates/" . $board_config['default_template']);
|
||||||
|
|
||||||
//
|
//
|
||||||
// This is currently worthless since all the individual
|
// This is currently worthless since all the individual
|
||||||
// language variables will only be locally defined in this
|
// language variables will only be locally defined in this
|
||||||
|
|
Loading…
Add table
Reference in a new issue