mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Merge branch '3.2.x' into 3.3.x
This commit is contained in:
commit
8dbda26623
1 changed files with 6 additions and 6 deletions
|
@ -256,12 +256,6 @@ if ($mode == 'popup')
|
||||||
|
|
||||||
$user->setup(array('posting', 'mcp', 'viewtopic'), $post_data['forum_style']);
|
$user->setup(array('posting', 'mcp', 'viewtopic'), $post_data['forum_style']);
|
||||||
|
|
||||||
if ($config['enable_post_confirm'] && !$user->data['is_registered'])
|
|
||||||
{
|
|
||||||
$captcha = $phpbb_container->get('captcha.factory')->get_instance($config['captcha_plugin']);
|
|
||||||
$captcha->init(CONFIRM_POST);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Use post_row values in favor of submitted ones...
|
// Use post_row values in favor of submitted ones...
|
||||||
$forum_id = (!empty($post_data['forum_id'])) ? (int) $post_data['forum_id'] : (int) $forum_id;
|
$forum_id = (!empty($post_data['forum_id'])) ? (int) $post_data['forum_id'] : (int) $forum_id;
|
||||||
$topic_id = (!empty($post_data['topic_id'])) ? (int) $post_data['topic_id'] : (int) $topic_id;
|
$topic_id = (!empty($post_data['topic_id'])) ? (int) $post_data['topic_id'] : (int) $topic_id;
|
||||||
|
@ -427,6 +421,12 @@ if (!$is_authed || !empty($error))
|
||||||
login_box('', $message);
|
login_box('', $message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($config['enable_post_confirm'] && !$user->data['is_registered'])
|
||||||
|
{
|
||||||
|
$captcha = $phpbb_container->get('captcha.factory')->get_instance($config['captcha_plugin']);
|
||||||
|
$captcha->init(CONFIRM_POST);
|
||||||
|
}
|
||||||
|
|
||||||
// Is the user able to post within this forum?
|
// Is the user able to post within this forum?
|
||||||
if ($post_data['forum_type'] != FORUM_POST && in_array($mode, array('post', 'bump', 'quote', 'reply')))
|
if ($post_data['forum_type'] != FORUM_POST && in_array($mode, array('post', 'bump', 'quote', 'reply')))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue