diff options
| author | Nils Adermann <naderman@naderman.de> | 2006-05-06 15:15:40 +0000 |
|---|---|---|
| committer | Nils Adermann <naderman@naderman.de> | 2006-05-06 15:15:40 +0000 |
| commit | 2ee2701eb1740d6f908e1ba905c8f7ab78ded061 (patch) | |
| tree | d208b7b763e7293f71e013c69a00cd4ff78dde52 /phpBB/includes/mcp/mcp_reports.php | |
| parent | 3640410cc0d753ab81612c7e5c914ecfb47b27fe (diff) | |
| download | forums-2ee2701eb1740d6f908e1ba905c8f7ab78ded061.tar forums-2ee2701eb1740d6f908e1ba905c8f7ab78ded061.tar.gz forums-2ee2701eb1740d6f908e1ba905c8f7ab78ded061.tar.bz2 forums-2ee2701eb1740d6f908e1ba905c8f7ab78ded061.tar.xz forums-2ee2701eb1740d6f908e1ba905c8f7ab78ded061.zip | |
- introduce LA_, UA_ and A_ template variables (they allow styles to use template variables used for javascript in subSilver outside javascript in their own template while they won't break our javascript if they contain quotes) also fixes [Bug #1116]
- corrected page title for search indexing progress bar [Bug #1695]
- correct poster name for the anonymous user in mcp_queue and mcp_reports
git-svn-id: file:///svn/phpbb/trunk@5888 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/mcp/mcp_reports.php')
| -rwxr-xr-x | phpBB/includes/mcp/mcp_reports.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/includes/mcp/mcp_reports.php b/phpBB/includes/mcp/mcp_reports.php index 552af357db..0f97dd7e27 100755 --- a/phpBB/includes/mcp/mcp_reports.php +++ b/phpBB/includes/mcp/mcp_reports.php @@ -98,6 +98,11 @@ class mcp_reports } // Set some vars + if ($post_info['user_id'] == ANONYMOUS) + { + $poster = ($post_info['post_username']) ? $post_info['post_username'] : $user->lang['GUEST']; + } + $poster = ($post_info['user_colour']) ? '<span style="color:#' . $post_info['user_colour'] . '">' . $post_info['username'] . '</span>' : $post_info['username']; // Process message, leave it uncensored @@ -119,7 +124,7 @@ class mcp_reports 'S_POST_LOCKED' => $post_info['post_edit_locked'], 'S_USER_NOTES' => $auth->acl_gets('m_', 'a_') ? true : false, - 'U_VIEW_PROFILE' => "{$phpbb_root_path}memberlist.$phpEx$SID&mode=viewprofile&u=" . $post_info['user_id'], + 'U_VIEW_PROFILE' => ($post_info['user_id'] != ANONYMOUS) ? "{$phpbb_root_path}memberlist.$phpEx$SID&mode=viewprofile&u=" . $post_info['user_id'] : '', 'U_MCP_USER_NOTES' => "{$phpbb_root_path}mcp.$phpEx$SID&i=notes&mode=user_notes&u=" . $post_info['user_id'], 'U_MCP_WARN_USER' => "{$phpbb_root_path}mcp.$phpEx$SID&i=warn&mode=warn_user&u=" . $post_info['user_id'], 'U_VIEW_REPORTER_PROFILE' => "{$phpbb_root_path}memberlist.$phpEx$SID&mode=viewprofile&u=" . $report['user_id'], |
