1

Topic: Language selection in profile.php

If you view the profile for another user it displays the language for the current user.

Possible fix: at line 1150 change

                                if ($pun_user['language'] == $temp)

to

                                if ($user['language'] == $temp)

and insert u.language into

$result = $db->query('SELECT u.username, u.email, u.title, u.realname, u.url, u.jabber, u.icq, u.msn, u.aim, u.yahoo, u.location, u.use_avatar, u.signature, u.disp_topics, u.disp_posts, u.email_setting, u.save_pass, u.notify_with_post, u.show_smilies, u.show_img, u.show_img_sig, u.show_avatars, u.show_sig, u.timezone, u.style, u.num_posts, u.last_post, u.registered, u.registration_ip, u.admin_note, g.g_id, g.g_user_title FROM '.$db->prefix.'users AS u LEFT JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id WHERE u.id='.$id) or error('Unable to fetch user info', __FILE__, __LINE__, $db->error());

Re: Language selection in profile.php

Thanks, I'll incorporate it into the next release.

"Programming is like sex: one mistake and you have to support it for the rest of your life."