diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-10-12 19:26:59 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2015-10-12 19:41:17 +0200 |
commit | 578ee077c114f63a6de0c277669ba91bd9f1219f (patch) | |
tree | 3d07ae23ed94643e0323f926c38a7d130436048b /phpBB/includes/functions_privmsgs.php | |
parent | f3e2bd9273e69445923c940b4588c8e4a7fdf1db (diff) | |
download | forums-578ee077c114f63a6de0c277669ba91bd9f1219f.tar forums-578ee077c114f63a6de0c277669ba91bd9f1219f.tar.gz forums-578ee077c114f63a6de0c277669ba91bd9f1219f.tar.bz2 forums-578ee077c114f63a6de0c277669ba91bd9f1219f.tar.xz forums-578ee077c114f63a6de0c277669ba91bd9f1219f.zip |
[ticket/14234] Fix change version and remove more references
PHPBB3-14234
Diffstat (limited to 'phpBB/includes/functions_privmsgs.php')
-rw-r--r-- | phpBB/includes/functions_privmsgs.php | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/phpBB/includes/functions_privmsgs.php b/phpBB/includes/functions_privmsgs.php index 7b6540cda7..ae925b15c8 100644 --- a/phpBB/includes/functions_privmsgs.php +++ b/phpBB/includes/functions_privmsgs.php @@ -1624,17 +1624,21 @@ function submit_pm($mode, $subject, &$data, $put_in_outbox = true) $current_time = time(); + $data_ary = $data; /** * Get all parts of the PM that are to be submited to the DB. * * @event core.submit_pm_before * @var string mode PM Post mode - post|reply|quote|quotepost|forward|edit * @var string subject Subject of the private message - * @var array data The whole row data of the PM. + * @var array data_ary The whole row data of the PM. * @since 3.1.0-b3 + * @change 3.2.0-a1 Replaced data with data_ary */ - $vars = array('mode', 'subject', 'data'); + $vars = array('mode', 'subject', 'data_ary'); extract($phpbb_dispatcher->trigger_event('core.submit_pm_before', compact($vars))); + $data = $data_ary; + unset($data_ary); // Collect some basic information about which tables and which rows to update/insert $sql_data = array(); @@ -1943,18 +1947,22 @@ function submit_pm($mode, $subject, &$data, $put_in_outbox = true) $phpbb_notifications->add_notifications('notification.type.pm', $pm_data); } + $data_ary = $data; /** * Get PM message ID after submission to DB * * @event core.submit_pm_after * @var string mode PM Post mode - post|reply|quote|quotepost|forward|edit * @var string subject Subject of the private message - * @var array data The whole row data of the PM. + * @var array data_ary The whole row data of the PM. * @var array pm_data The data sent to notification class * @since 3.1.0-b5 + * @change 3.2.0-a1 Replaced data with data_ary */ - $vars = array('mode', 'subject', 'data', 'pm_data'); + $vars = array('mode', 'subject', 'data_ary', 'pm_data'); extract($phpbb_dispatcher->trigger_event('core.submit_pm_after', compact($vars))); + $data = $data_ary; + unset($data_ary); return $data['msg_id']; } |