aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-11-09 13:37:53 +0100
committerJoas Schilling <nickvergessen@gmx.de>2012-11-09 13:37:53 +0100
commit9c2a58eff4c2bd164ee3bdb2ec66729d4562963d (patch)
treede37766616cc7473b4590a77e1c660f433eab1ce /phpBB/posting.php
parentdac798deffde15f3cb0383f5aa06a266aa9bc6cd (diff)
downloadforums-9c2a58eff4c2bd164ee3bdb2ec66729d4562963d.tar
forums-9c2a58eff4c2bd164ee3bdb2ec66729d4562963d.tar.gz
forums-9c2a58eff4c2bd164ee3bdb2ec66729d4562963d.tar.bz2
forums-9c2a58eff4c2bd164ee3bdb2ec66729d4562963d.tar.xz
forums-9c2a58eff4c2bd164ee3bdb2ec66729d4562963d.zip
[feature/soft-delete] Append _approved to *_posts and *_topics column names
PHPBB3-9567
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 0b22fa54c2..52ef424ace 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -887,8 +887,8 @@ if ($submit || $preview || $refresh)
if ($submit && $mode == 'edit' && $post_data['post_visibility'] == ITEM_DELETED && !isset($_POST['soft_delete']) && $auth->acl_get('m_approve', $forum_id))
{
- $is_first_post = ($post_id == $post_data['topic_first_post_id'] || !$post_data['topic_posts']);
- $is_last_post = ($post_id == $post_data['topic_last_post_id'] || !$post_data['topic_posts']);
+ $is_first_post = ($post_id == $post_data['topic_first_post_id'] || !$post_data['topic_posts_approved']);
+ $is_last_post = ($post_id == $post_data['topic_last_post_id'] || !$post_data['topic_posts_approved']);
$updated_post_data = phpbb_content_visibility::set_post_visibility(ITEM_APPROVED, $post_id, $post_data['topic_id'], $post_data['forum_id'], $user->data['user_id'], time(), '', $is_first_post, $is_last_post);
if (!empty($updated_post_data))
@@ -1103,7 +1103,7 @@ if ($submit || $preview || $refresh)
if ($mode == 'edit')
{
- $data['topic_posts'] = $post_data['topic_posts'];
+ $data['topic_posts_approved'] = $post_data['topic_posts_approved'];
$data['topic_posts_unapproved'] = $post_data['topic_posts_unapproved'];
$data['topic_posts_softdeleted'] = $post_data['topic_posts_softdeleted'];
}
@@ -1563,7 +1563,7 @@ function handle_post_delete($forum_id, $topic_id, $post_id, &$post_data, $is_sof
$data = array(
'topic_first_post_id' => $post_data['topic_first_post_id'],
'topic_last_post_id' => $post_data['topic_last_post_id'],
- 'topic_posts' => $post_data['topic_posts'],
+ 'topic_posts_approved' => $post_data['topic_posts_approved'],
'topic_posts_unapproved' => $post_data['topic_posts_unapproved'],
'topic_posts_softdeleted' => $post_data['topic_posts_softdeleted'],
'topic_visibility' => $post_data['topic_visibility'],