aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-07-20 09:39:35 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-07-20 09:39:35 +0200
commitebf0bc2134876dc7f281001b51a89aa7ce0f8f9d (patch)
treec4e784cc7eb4cbdc55baebadbe4af9d2d70e888c
parent203bd4edd57ae4d803a8590a6167770491640380 (diff)
parent8b981f9ccd12fe4fa91fa242014c525cd1fcb6ec (diff)
downloadforums-ebf0bc2134876dc7f281001b51a89aa7ce0f8f9d.tar
forums-ebf0bc2134876dc7f281001b51a89aa7ce0f8f9d.tar.gz
forums-ebf0bc2134876dc7f281001b51a89aa7ce0f8f9d.tar.bz2
forums-ebf0bc2134876dc7f281001b51a89aa7ce0f8f9d.tar.xz
forums-ebf0bc2134876dc7f281001b51a89aa7ce0f8f9d.zip
Merge pull request #3780 from RMcGirr83/ticket/13815
[ticket/13815] Event parameters in posting have no effect
-rw-r--r--phpBB/posting.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index bd36dc5db7..2bd3a1a1d2 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -1379,10 +1379,9 @@ if ($submit || $preview || $refresh)
* @var string post_author_name Author name for guest posts
* @var bool update_message Boolean if the post message was changed
* @var bool update_subject Boolean if the post subject was changed
- * @var bool submit Whether or not the form has been submitted
- * @var array error Any error strings; a non-empty array aborts form submission.
* NOTE: Should be actual language strings, NOT language keys.
* @since 3.1.0-RC5
+ * @changed 3.1.6-RC1 remove submit and error from event Submit and Error are checked previously prior to running event
*/
$vars = array(
'post_data',
@@ -1396,8 +1395,6 @@ if ($submit || $preview || $refresh)
'post_author_name',
'update_message',
'update_subject',
- 'submit',
- 'error',
);
extract($phpbb_dispatcher->trigger_event('core.posting_modify_submit_post_before', compact($vars)));
@@ -1421,10 +1418,9 @@ if ($submit || $preview || $refresh)
* @var bool update_message Boolean if the post message was changed
* @var bool update_subject Boolean if the post subject was changed
* @var string redirect_url URL the user is going to be redirected to
- * @var bool submit Whether or not the form has been submitted
- * @var array error Any error strings; a non-empty array aborts form submission.
* NOTE: Should be actual language strings, NOT language keys.
* @since 3.1.0-RC5
+ * @changed 3.1.6-RC1 remove submit and error from event Submit and Error are checked previously prior to running event
*/
$vars = array(
'post_data',
@@ -1439,8 +1435,6 @@ if ($submit || $preview || $refresh)
'update_message',
'update_subject',
'redirect_url',
- 'submit',
- 'error',
);
extract($phpbb_dispatcher->trigger_event('core.posting_modify_submit_post_after', compact($vars)));