mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-19 07:16:36 +02:00
Merge branch '3.3.x'
This commit is contained in:
commit
f23b429cd6
@ -222,6 +222,25 @@ if (!$post_data)
|
||||
trigger_error(($mode == 'post' || $mode == 'bump' || $mode == 'reply') ? 'NO_TOPIC' : 'NO_POST');
|
||||
}
|
||||
|
||||
/**
|
||||
* This event allows you to bypass reply/quote test of an unapproved post.
|
||||
*
|
||||
* @event core.posting_modify_row_data
|
||||
* @var array post_data All post data from database
|
||||
* @var string mode What action to take if the form has been submitted
|
||||
* post|reply|quote|edit|delete|bump|smilies|popup
|
||||
* @var int topic_id ID of the topic
|
||||
* @var int forum_id ID of the forum
|
||||
* @since 3.2.8-RC1
|
||||
*/
|
||||
$vars = array(
|
||||
'post_data',
|
||||
'mode',
|
||||
'topic_id',
|
||||
'forum_id',
|
||||
);
|
||||
extract($phpbb_dispatcher->trigger_event('core.posting_modify_row_data', compact($vars)));
|
||||
|
||||
// Not able to reply to unapproved posts/topics
|
||||
// TODO: add more descriptive language key
|
||||
if ($auth->acl_get('m_approve', $forum_id) && ((($mode == 'reply' || $mode == 'bump') && $post_data['topic_visibility'] != ITEM_APPROVED) || ($mode == 'quote' && $post_data['post_visibility'] != ITEM_APPROVED)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user