aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/message_parser.php
diff options
context:
space:
mode:
author3Di <three3di@hotmail.it>2019-03-23 05:09:17 +0100
committerGitHub <noreply@github.com>2019-03-23 05:09:17 +0100
commit6921565efe4674c51eb08326313cfca3349eedd5 (patch)
treedabee12a9a81fe778be6769c5f1abc5be36ab9cf /phpBB/includes/message_parser.php
parent6c1664f6d3b85c1b4d620870444c8f4b82b08e57 (diff)
parent0d04f53f374db12a1a285992a9c789a836848b3e (diff)
downloadforums-6921565efe4674c51eb08326313cfca3349eedd5.tar
forums-6921565efe4674c51eb08326313cfca3349eedd5.tar.gz
forums-6921565efe4674c51eb08326313cfca3349eedd5.tar.bz2
forums-6921565efe4674c51eb08326313cfca3349eedd5.tar.xz
forums-6921565efe4674c51eb08326313cfca3349eedd5.zip
Merge branch '3.2.x' into ticket/15948
Diffstat (limited to 'phpBB/includes/message_parser.php')
-rw-r--r--phpBB/includes/message_parser.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php
index c12f2ab1aa..0b79cca864 100644
--- a/phpBB/includes/message_parser.php
+++ b/phpBB/includes/message_parser.php
@@ -1587,6 +1587,16 @@ class parse_message extends bbcode_firstpass
'poster_id' => $user->data['user_id'],
);
+ /**
+ * Modify attachment sql array on submit
+ *
+ * @event core.modify_attachment_sql_ary_on_submit
+ * @var array sql_ary Array containing SQL data
+ * @since 3.2.6-RC1
+ */
+ $vars = array('sql_ary');
+ extract($phpbb_dispatcher->trigger_event('core.modify_attachment_sql_ary_on_submit', compact($vars)));
+
$db->sql_query('INSERT INTO ' . ATTACHMENTS_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary));
$new_entry = array(
@@ -1722,6 +1732,16 @@ class parse_message extends bbcode_firstpass
'poster_id' => $user->data['user_id'],
);
+ /**
+ * Modify attachment sql array on upload
+ *
+ * @event core.modify_attachment_sql_ary_on_upload
+ * @var array sql_ary Array containing SQL data
+ * @since 3.2.6-RC1
+ */
+ $vars = array('sql_ary');
+ extract($phpbb_dispatcher->trigger_event('core.modify_attachment_sql_ary_on_upload', compact($vars)));
+
$db->sql_query('INSERT INTO ' . ATTACHMENTS_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary));
$new_entry = array(