Bug tracker
prosilver images change (fix completed in vcs)
Comments / History
For example if you remove the check (sid) the language of the user will be called, ( for guests would it be the default board language ).
see the patch i have attached.
OPEN style.php, FIND
- Code: Select all
$id = (isset($_GET['id'])) ? intval($_GET['id']) : 0;
ADD AFTER
- Code: Select all
$lang = (isset($_GET['lang']) && !is_array($_GET['lang'])) ? htmlspecialchars($_GET['lang']) : '';
FIND
- Code: Select all
if ($user['user_id'] == ANONYMOUS)
{
$user['user_lang'] = $config['default_lang'];
}
ADD AFTER
- Code: Select all
if (!empty($lang))
{
$user['user_lang'] = $lang;
}
Also need to change the language in Anonymous profile (default english).
how to use patch?
OPEN includes/functions.php, FIND
- Code: Select all
'T_STYLESHEET_LINK' => (!$user->theme['theme_storedb']) ? "{$web_path}styles/" . $user->theme['theme_path'] . '/theme/stylesheet.css' : append_sid("{$phpbb_root_path}style.$phpEx", 'id=' . $user->theme['style_id'] . '&lang=' . $user->data['user_lang']),
REPLACE WITH
- Code: Select all
'T_STYLESHEET_LINK' => (!$user->theme['theme_storedb']) ? "{$web_path}styles/" . $user->theme['theme_path'] . '/theme/stylesheet.css' : append_sid("{$phpbb_root_path}style.$phpEx", 'id=' . $user->theme['style_id'] . '&lang=' . $user->data['user_lang'],true,$user->session_id),
MySQL: 5.0.51a-24+lenny1-log
Same issue here with all installed boards, independent which style is set. Standard language buttons are displayed.
The patch by Raimon didn't change anything, but the patch by zhenyab did the trick.
Not tried the patch by nissin.
Thanks in advance!