diff options
| author | Graham Eames <grahamje@users.sourceforge.net> | 2005-12-17 20:41:23 +0000 |
|---|---|---|
| committer | Graham Eames <grahamje@users.sourceforge.net> | 2005-12-17 20:41:23 +0000 |
| commit | e7565d31d0c25a330f5310bed765d9470096c21d (patch) | |
| tree | e8a81bcbc9b4e13436e34377c2f72b41a8b1cc85 /phpBB/viewtopic.php | |
| parent | 791b1bbe73215cb98ed79fa78353182b9b0803a7 (diff) | |
| download | forums-e7565d31d0c25a330f5310bed765d9470096c21d.tar forums-e7565d31d0c25a330f5310bed765d9470096c21d.tar.gz forums-e7565d31d0c25a330f5310bed765d9470096c21d.tar.bz2 forums-e7565d31d0c25a330f5310bed765d9470096c21d.tar.xz forums-e7565d31d0c25a330f5310bed765d9470096c21d.zip | |
Expose the warning level and user notes in appropriate places (assuming
the user has the correct permissions)
git-svn-id: file:///svn/phpbb/trunk@5345 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
| -rw-r--r-- | phpBB/viewtopic.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 916ca17249..689e1c37f0 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -886,6 +886,7 @@ while ($row = $db->sql_fetchrow($result)) $user_cache[$poster_id] = array( 'joined' => $user->format_date($row['user_regdate'], $user->lang['DATE_FORMAT']), 'posts' => $row['user_posts'], + 'warnings' => $row['user_warnings'], 'from' => (!empty($row['user_from'])) ? $row['user_from'] : '', 'sig' => $user_sig, @@ -1262,6 +1263,7 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i) 'POSTER_POSTS' => $user_cache[$poster_id]['posts'], 'POSTER_FROM' => $user_cache[$poster_id]['from'], 'POSTER_AVATAR' => $user_cache[$poster_id]['avatar'], + 'POSTER_WARNINGS' => $user_cache[$poster_id]['warnings'], 'POST_DATE' => $user->format_date($row['post_time']), 'POST_SUBJECT' => $row['post_subject'], @@ -1300,6 +1302,7 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i) 'U_MINI_POST' => "{$phpbb_root_path}viewtopic.$phpEx$SID&p=" . $row['post_id'] . '#' . $row['post_id'], 'U_NEXT_POST_ID' => ($i < $i_total && isset($rowset[$i + 1])) ? $rowset[$i + 1]['post_id'] : '', 'U_PREV_POST_ID' => $prev_post_id, + 'U_NOTES' => ($auth->acl_gets('m_', 'a_')) ? "{$phpbb_root_path}mcp.$phpEx$SID&i=notes&mode=user_notes&u=" . $poster_id : '', 'U_WARN' => ($auth->acl_gets('m_', 'a_', $forum_id)) ? "{$phpbb_root_path}mcp.$phpEx$SID&i=warn&mode=warn_post&p=" . $row['post_id'] : '', 'POST_ID' => $row['post_id'], |
