mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/13164] Update post_visibility before event is triggered
PHPBB3-13164
This commit is contained in:
parent
5b186c936d
commit
699c642128
1 changed files with 2 additions and 0 deletions
|
@ -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 = (!$params) ? "{$phpbb_root_path}viewforum.$phpEx" : "{$phpbb_root_path}viewtopic.$phpEx";
|
||||||
$url = append_sid($url, 'f=' . $data['forum_id'] . $params) . $add_anchor;
|
$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
|
* 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
|
* has been submitted. When a new topic is posted, the topic ID is
|
||||||
|
|
Loading…
Add table
Reference in a new issue