aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-09-20 17:08:16 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-09-20 17:08:16 +0000
commit8da2b69e2b8d823346d6ccf214a1ef0584dc87df (patch)
treec660ae6fd02869ce1aa5a9ab79b532f0ac3fdc50 /phpBB/posting.php
parent4006def79d6e85d297558ab4d7e0ef6705b44de3 (diff)
downloadforums-8da2b69e2b8d823346d6ccf214a1ef0584dc87df.tar
forums-8da2b69e2b8d823346d6ccf214a1ef0584dc87df.tar.gz
forums-8da2b69e2b8d823346d6ccf214a1ef0584dc87df.tar.bz2
forums-8da2b69e2b8d823346d6ccf214a1ef0584dc87df.tar.xz
forums-8da2b69e2b8d823346d6ccf214a1ef0584dc87df.zip
note correct username if post/topic get's removed if user is anonymous
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10170 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 35b247cd9c..9c46edd0e1 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -1569,17 +1569,18 @@ function handle_post_delete($forum_id, $topic_id, $post_id, &$post_data)
);
$next_post_id = delete_post($forum_id, $topic_id, $post_id, $data);
+ $post_username = ($post_data['poster_id'] == ANONYMOUS && !empty($post_data['post_username'])) ? $post_data['post_username'] : $post_data['username'];
if ($next_post_id === false)
{
- add_log('mod', $forum_id, $topic_id, 'LOG_DELETE_TOPIC', $post_data['topic_title'], $post_data['username']);
+ add_log('mod', $forum_id, $topic_id, 'LOG_DELETE_TOPIC', $post_data['topic_title'], $post_username);
$meta_info = append_sid("{$phpbb_root_path}viewforum.$phpEx", "f=$forum_id");
$message = $user->lang['POST_DELETED'];
}
else
{
- add_log('mod', $forum_id, $topic_id, 'LOG_DELETE_POST', $post_data['post_subject'], $post_data['username']);
+ add_log('mod', $forum_id, $topic_id, 'LOG_DELETE_POST', $post_data['post_subject'], $post_username);
$meta_info = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&amp;t=$topic_id&amp;p=$next_post_id") . "#p$next_post_id";
$message = $user->lang['POST_DELETED'] . '<br /><br />' . sprintf($user->lang['RETURN_TOPIC'], '<a href="' . $meta_info . '">', '</a>');