mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge branch '3.3.x'
This commit is contained in:
commit
f23b429cd6
1 changed files with 19 additions and 0 deletions
|
@ -222,6 +222,25 @@ if (!$post_data)
|
||||||
trigger_error(($mode == 'post' || $mode == 'bump' || $mode == 'reply') ? 'NO_TOPIC' : 'NO_POST');
|
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
|
// Not able to reply to unapproved posts/topics
|
||||||
// TODO: add more descriptive language key
|
// 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)))
|
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…
Add table
Reference in a new issue