aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Senko <jakubsenko@gmail.com>2014-10-10 14:24:46 +0200
committerJakub Senko <jakubsenko@gmail.com>2014-10-10 14:24:46 +0200
commit699c6421288844b3b41bad12ada9d8f8e71d45fc (patch)
treeb711a7c0c639bd3b69ca960e60609121a5550189
parent5b186c936d6d6d67b8b0551a990522fdc68e2a4c (diff)
downloadforums-699c6421288844b3b41bad12ada9d8f8e71d45fc.tar
forums-699c6421288844b3b41bad12ada9d8f8e71d45fc.tar.gz
forums-699c6421288844b3b41bad12ada9d8f8e71d45fc.tar.bz2
forums-699c6421288844b3b41bad12ada9d8f8e71d45fc.tar.xz
forums-699c6421288844b3b41bad12ada9d8f8e71d45fc.zip
[ticket/13164] Update post_visibility before event is triggered
PHPBB3-13164
-rw-r--r--phpBB/includes/functions_posting.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 1fdc7ee9ea..db36539b49 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -2369,6 +2369,8 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
$url = (!$params) ? "{$phpbb_root_path}viewforum.$phpEx" : "{$phpbb_root_path}viewtopic.$phpEx";
$url = append_sid($url, 'f=' . $data['forum_id'] . $params) . $add_anchor;
+ // update post_visibility in $data
+ $data['post_visibility'] = $post_visibility;
/**
* This event is used for performing actions directly after a post or topic
* has been submitted. When a new topic is posted, the topic ID is