aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-05-09 19:06:06 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-05-09 19:06:06 +0000
commit6b6cea7aaf3838fb04e40034d4de4a29868f54fe (patch)
tree03e0a79dde3d4e72eabfa9ee5a570251104fa1b8 /phpBB/posting.php
parent5a866d524925fcf68c13ea7dd29f95fa40d5e218 (diff)
downloadforums-6b6cea7aaf3838fb04e40034d4de4a29868f54fe.tar
forums-6b6cea7aaf3838fb04e40034d4de4a29868f54fe.tar.gz
forums-6b6cea7aaf3838fb04e40034d4de4a29868f54fe.tar.bz2
forums-6b6cea7aaf3838fb04e40034d4de4a29868f54fe.tar.xz
forums-6b6cea7aaf3838fb04e40034d4de4a29868f54fe.zip
fix for editing unapproved posts by a person not on moderation queue (do not switch state)
git-svn-id: file:///svn/phpbb/trunk@7519 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index bfb90d0974..14d7c7e668 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -946,7 +946,10 @@ if ($submit || $preview || $refresh)
'bbcode_uid' => $message_parser->bbcode_uid,
'message' => $message_parser->message,
'attachment_data' => $message_parser->attachment_data,
- 'filename_data' => $message_parser->filename_data
+ 'filename_data' => $message_parser->filename_data,
+
+ 'topic_approved' => (isset($post_data['topic_approved'])) ? $post_data['topic_approved'] : false,
+ 'post_approved' => (isset($post_data['post_approved'])) ? $post_data['post_approved'] : false,
);
unset($message_parser);