aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-10-27 17:12:34 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-10-27 17:12:34 +0200
commit4a8d38aab13099fdb4fb7e2a7b72cff1c05fda9c (patch)
tree5851c08fb528feb0dd1ff80fe3690600e8033ffe /phpBB/posting.php
parent7b3d794cad4c06b1bbb769439a2d051b7ca0a0d4 (diff)
downloadforums-4a8d38aab13099fdb4fb7e2a7b72cff1c05fda9c.tar
forums-4a8d38aab13099fdb4fb7e2a7b72cff1c05fda9c.tar.gz
forums-4a8d38aab13099fdb4fb7e2a7b72cff1c05fda9c.tar.bz2
forums-4a8d38aab13099fdb4fb7e2a7b72cff1c05fda9c.tar.xz
forums-4a8d38aab13099fdb4fb7e2a7b72cff1c05fda9c.zip
[feature/soft-delete] Allow soft deleting/restoring topics via quickmoderation
PHPBB3-9567
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index f82ae049dc..d1c48b38b0 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -1565,14 +1565,14 @@ function handle_post_delete($forum_id, $topic_id, $post_id, &$post_data, $is_sof
if ($next_post_id === false)
{
- add_log('mod', $forum_id, $topic_id, 'LOG_DELETE_TOPIC', $post_data['topic_title'], $post_username);
+ add_log('mod', $forum_id, $topic_id, (($is_soft) ? 'LOG_SOFTDELETE_TOPIC' : '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_username);
+ add_log('mod', $forum_id, $topic_id, (($is_soft) ? 'LOG_SOFTDELETE_POST' : '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>');