diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2009-06-26 10:15:42 +0000 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2009-06-26 10:15:42 +0000 |
commit | d92bdc8a76c8e1ab2f3398c84fc74750f71b4ea4 (patch) | |
tree | 647b24f511047bf3548de9a7e1659da4a5a875a3 /phpBB/posting.php | |
parent | d39d8481cfd6a9cd1e418aaff14833a149770e71 (diff) | |
download | forums-d92bdc8a76c8e1ab2f3398c84fc74750f71b4ea4.tar forums-d92bdc8a76c8e1ab2f3398c84fc74750f71b4ea4.tar.gz forums-d92bdc8a76c8e1ab2f3398c84fc74750f71b4ea4.tar.bz2 forums-d92bdc8a76c8e1ab2f3398c84fc74750f71b4ea4.tar.xz forums-d92bdc8a76c8e1ab2f3398c84fc74750f71b4ea4.zip |
Fix bug #46225 - Add poster-name to moderator-log when deleting post/topic
Authorised by: acydburn
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9678 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r-- | phpBB/posting.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 66daf7128f..4f099d97ac 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -1440,14 +1440,14 @@ function handle_post_delete($forum_id, $topic_id, $post_id, &$post_data) if ($next_post_id === false) { - add_log('mod', $forum_id, $topic_id, 'LOG_DELETE_TOPIC', $post_data['topic_title']); + add_log('mod', $forum_id, $topic_id, 'LOG_DELETE_TOPIC', $post_data['topic_title'], $post_data['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']); + add_log('mod', $forum_id, $topic_id, 'LOG_DELETE_POST', $post_data['post_subject'], $post_data['username']); $meta_info = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id&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>'); |