diff options
| author | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-09-09 11:04:13 +0200 |
|---|---|---|
| committer | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-09-09 11:04:13 +0200 |
| commit | 542d75b3a918a5782a1682003fdc4e1f004afc47 (patch) | |
| tree | 2284f3f68e39e7f5630fefc6d4879966b2e6e681 /phpBB/includes/mcp/mcp_main.php | |
| parent | b83ce0a702583aec717a7be6363b950b63a45f45 (diff) | |
| parent | 1fbdf615f2aa9c9be4816a9d927d36f88b68f20d (diff) | |
| download | forums-542d75b3a918a5782a1682003fdc4e1f004afc47.tar forums-542d75b3a918a5782a1682003fdc4e1f004afc47.tar.gz forums-542d75b3a918a5782a1682003fdc4e1f004afc47.tar.bz2 forums-542d75b3a918a5782a1682003fdc4e1f004afc47.tar.xz forums-542d75b3a918a5782a1682003fdc4e1f004afc47.zip | |
Merge pull request #3870 from Zoddo/ticket/9485
[ticket/9485] Add a "View post" link in the moderation logs
* Zoddo/ticket/9485:
[ticket/9485] Fix tests
[ticket/9485] Add post_id to relevant $phpbb_log->add()
[ticket/9485] Add a "View post" link in the moderation logs
Diffstat (limited to 'phpBB/includes/mcp/mcp_main.php')
| -rw-r--r-- | phpBB/includes/mcp/mcp_main.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_main.php b/phpBB/includes/mcp/mcp_main.php index 66e59bb74d..b0579d8995 100644 --- a/phpBB/includes/mcp/mcp_main.php +++ b/phpBB/includes/mcp/mcp_main.php @@ -322,6 +322,7 @@ function lock_unlock($action, $ids) $phpbb_log->add('mod', $user->data['user_id'], $user->ip, 'LOG_' . strtoupper($action), false, array( 'forum_id' => $row['forum_id'], 'topic_id' => $row['topic_id'], + 'post_id' => isset($row['post_id']) ? $row['post_id'] : 0, $row['topic_title'] )); } @@ -1022,6 +1023,7 @@ function mcp_delete_post($post_ids, $is_soft = false, $soft_delete_reason = '', $phpbb_log->add('mod', $user->data['user_id'], $user->ip, 'LOG_SOFTDELETE_POST', false, array( 'forum_id' => $row['forum_id'], 'topic_id' => $row['topic_id'], + 'post_id' => $row['post_id'], $row['post_subject'], $post_username, $soft_delete_reason @@ -1071,6 +1073,7 @@ function mcp_delete_post($post_ids, $is_soft = false, $soft_delete_reason = '', $phpbb_log->add('mod', $user->data['user_id'], $user->ip, 'LOG_DELETE_POST', false, array( 'forum_id' => $row['forum_id'], 'topic_id' => $row['topic_id'], + 'post_id' => $row['post_id'], $row['post_subject'], $post_username, $soft_delete_reason |
