Commented out core.modify_attachment_sql_ary_on_submit
This commit is contained in:
parent
8707a1c135
commit
ed3eacff44
1 changed files with 9 additions and 7 deletions
|
@ -422,13 +422,15 @@ class AIController
|
||||||
'topic_id' => $topicId,
|
'topic_id' => $topicId,
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($dispatchEvent) {
|
|
||||||
$dispatcher = $this->phpbb_container->get('dispatcher');
|
|
||||||
// Same exact code as in https://github.com/phpbb/phpbb/blob/master/phpBB/includes/message_parser.php
|
// Same exact code as in https://github.com/phpbb/phpbb/blob/master/phpBB/includes/message_parser.php
|
||||||
// See core.modify_attachment_sql_ary_on_submit https://area51.phpbb.com/docs/dev/3.3.x/extensions/events_list.html
|
// See core.modify_attachment_sql_ary_on_submit https://area51.phpbb.com/docs/dev/3.3.x/extensions/events_list.html
|
||||||
$vars_array = array('sql_ary');
|
// Used solution proposed in https://www.phpbb.com/community/viewtopic.php?t=2556226
|
||||||
extract($dispatcher->trigger_event('core.modify_attachment_sql_ary_on_submit', compact($vars_array)));
|
// Commented out after reading https://www.phpbb.com/community/viewtopic.php?t=2287631
|
||||||
}
|
// if ($dispatchEvent) {
|
||||||
|
// $dispatcher = $this->phpbb_container->get('dispatcher');
|
||||||
|
// $vars = array('sql_ary');
|
||||||
|
// extract($dispatcher->trigger_event('core.modify_attachment_sql_ary_on_submit', compact($vars)));
|
||||||
|
// }
|
||||||
|
|
||||||
$this->db->sql_query('INSERT INTO ' . ATTACHMENTS_TABLE . ' ' . $this->db->sql_build_array('INSERT', $sql_ary));
|
$this->db->sql_query('INSERT INTO ' . ATTACHMENTS_TABLE . ' ' . $this->db->sql_build_array('INSERT', $sql_ary));
|
||||||
$newAttachmentID = intval($this->db->sql_nextid());
|
$newAttachmentID = intval($this->db->sql_nextid());
|
||||||
|
|
Loading…
Reference in a new issue