diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html
index 0d09c5dc00..10085f69da 100644
--- a/phpBB/docs/CHANGELOG.html
+++ b/phpBB/docs/CHANGELOG.html
@@ -134,6 +134,7 @@
[Fix] Correctly display ACP logs options, without permission to clear logs. (Bug #24155 - Patch by leviatan21)
[Fix] Display topic icons in MCP forum view again (only prosilver).
[Fix] Properly display post status messages in topic when post is reported and unapproved (Bug #44455 - Patch by leviatan21)
+ [Fix] Add poster-name to moderator-log when deleting post/topic (Bug #46225 - Patch by nickvergessen)
[Fix] "Report details" link broken in MCP (Bug #46975 - Patch by nickvergessen)
[Change] Change the data format of the default file ACM to be more secure from tampering and have better performance.
[Change] Add index on log_time to the log table to prevent slowdown on boards with many log entries. (Bug #44665 - Patch by bantu)
diff --git a/phpBB/language/en/acp/common.php b/phpBB/language/en/acp/common.php
index 65475d7627..7e92594b85 100644
--- a/phpBB/language/en/acp/common.php
+++ b/phpBB/language/en/acp/common.php
@@ -479,9 +479,9 @@ $lang = array_merge($lang, array(
'LOG_APPROVE_TOPIC' => 'Approved topic
» %s',
'LOG_BUMP_TOPIC' => 'User bumped topic
» %s',
- 'LOG_DELETE_POST' => 'Deleted post
» %s',
+ 'LOG_DELETE_POST' => 'Deleted post “%1$s” written by
» %2$s',
'LOG_DELETE_SHADOW_TOPIC' => 'Deleted shadow topic
» %s',
- 'LOG_DELETE_TOPIC' => 'Deleted topic
» %s',
+ 'LOG_DELETE_TOPIC' => 'Deleted topic “%1$s” written by
» %2$s',
'LOG_FORK' => 'Copied topic
» from %s',
'LOG_LOCK' => 'Locked topic
» %s',
'LOG_LOCK_POST' => 'Locked post
» %s',
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'] . '
' . sprintf($user->lang['RETURN_TOPIC'], '', '');