aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Kubuntu <marcovoort@gmail.com>2015-06-27 12:38:31 +0200
committerMarco Kubuntu <marcovoort@gmail.com>2015-06-27 12:38:31 +0200
commit6f189636363d7ab2e373932d392ec4818b10c84a (patch)
tree82349c38907846ea43c2619af60f4e8048e16ddf
parent7b93df1522b3e670e856a2630eac208b210a0831 (diff)
downloadforums-6f189636363d7ab2e373932d392ec4818b10c84a.tar
forums-6f189636363d7ab2e373932d392ec4818b10c84a.tar.gz
forums-6f189636363d7ab2e373932d392ec4818b10c84a.tar.bz2
forums-6f189636363d7ab2e373932d392ec4818b10c84a.tar.xz
forums-6f189636363d7ab2e373932d392ec4818b10c84a.zip
[ticket/13971] Add draft_id var to event core.posting_modify_template_vars
Added draft_id to the core.posting_modify_template_vars event in posting.php, to provide the ability to use the 'checked' draft_id in extensions, in addition to the 'raw' draft_id provided in earlier events in posting.php PHPBB3-13971
-rw-r--r--phpBB/posting.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 651f674ef9..4b7ae341c3 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -1841,6 +1841,7 @@ if (($mode == 'post' || ($mode == 'edit' && $post_id == $post_data['topic_first_
* @var int post_id ID of the post
* @var int topic_id ID of the topic
* @var int forum_id ID of the forum
+* @var int draft_id ID of the draft
* @var bool submit Whether or not the form has been submitted
* @var bool preview Whether or not the post is being previewed
* @var bool save Whether or not a draft is being saved
@@ -1863,6 +1864,7 @@ if (($mode == 'post' || ($mode == 'edit' && $post_id == $post_data['topic_first_
* delete, cancel, refresh, error, page_data, message_parser
* @change 3.1.2-RC1 Removed 'delete' var as it does not exist
* @change 3.1.5-RC1 Added poll variables to the page_data array
+* @change 3.1.6-RC1 Added 'draft_id' var
*/
$vars = array(
'post_data',
@@ -1876,6 +1878,7 @@ $vars = array(
'post_id',
'topic_id',
'forum_id',
+ 'draft_id',
'submit',
'preview',
'save',