|
From: FlorinCB <ory...@us...> - 2008-07-05 22:20:02
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12918 Modified Files: mx_functions_phpbb.php Log Message: fix Index: mx_functions_phpbb.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_phpbb.php,v retrieving revision 1.68 retrieving revision 1.69 diff -C2 -d -r1.68 -r1.69 *** mx_functions_phpbb.php 25 Jun 2008 23:45:29 -0000 1.68 --- mx_functions_phpbb.php 5 Jul 2008 22:19:58 -0000 1.69 *************** *** 1567,1571 **** function mx_get_username_string($mode, $user_id, $username, $username_colour = '', $guest_username = false, $custom_profile_url = false) { ! global $phpbb_root_path, $mx_root_path, $phpEx, $mx_user, $phpbb_auth; $profile_url = ''; --- 1567,1571 ---- function mx_get_username_string($mode, $user_id, $username, $username_colour = '', $guest_username = false, $custom_profile_url = false) { ! global $phpbb_root_path, $phpEx, $user, $phpbb_auth; $profile_url = ''; *************** *** 1574,1582 **** if ($guest_username === false) { ! $username = ($username) ? $username : $mx_user->lang['GUEST']; } else { ! $username = ($user_id && $user_id != ANONYMOUS) ? $username : ((!empty($guest_username)) ? $guest_username : $mx_user->lang['GUEST']); } --- 1574,1582 ---- if ($guest_username === false) { ! $username = ($username) ? $username : $user->lang['GUEST']; } else { ! $username = ($user_id && $user_id != ANONYMOUS) ? $username : ((!empty($guest_username)) ? $guest_username : $user->lang['GUEST']); } *************** *** 1586,1590 **** // Do not show the link if the user is already logged in but do not have u_viewprofile permissions (relevant for bots mostly). // For all others the link leads to a login page or the profile. ! if ($mx_user->data['user_id'] != ANONYMOUS && !$phpbb_auth->acl_get('u_viewprofile')) { $profile_url = ''; --- 1586,1590 ---- // Do not show the link if the user is already logged in but do not have u_viewprofile permissions (relevant for bots mostly). // For all others the link leads to a login page or the profile. ! if ($user->data['user_id'] != ANONYMOUS && !$phpbb_auth->acl_get('u_viewprofile')) { $profile_url = ''; *************** *** 1592,1596 **** else { ! $profile_url = ($custom_profile_url !== false) ? $custom_profile_url : mx_append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=viewprofile'); $profile_url .= '&u=' . (int) $user_id; } --- 1592,1596 ---- else { ! $profile_url = ($custom_profile_url !== false) ? $custom_profile_url : mx3_append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=viewprofile'); $profile_url .= '&u=' . (int) $user_id; } |