[ticket/15878] Add attachments to ucp_pm_view_message

PHPBB3-15878
This commit is contained in:
Jakub Senko 2018-11-19 15:35:26 +01:00
parent 7e003bf687
commit 22b8b45f28
No known key found for this signature in database
GPG key ID: 6A7C328CD66EC21E

View file

@ -296,7 +296,9 @@ function view_message($id, $mode, $folder_id, $msg_id, $folder, $message_row)
* @var array cp_row Array with senders custom profile field data * @var array cp_row Array with senders custom profile field data
* @var array msg_data Template array with message data * @var array msg_data Template array with message data
* @var array user_info User data of the sender * @var array user_info User data of the sender
* @var array attachments Attachments data
* @since 3.2.2-RC1 * @since 3.2.2-RC1
* @changed 3.2.5-RC1 Added attachments
*/ */
$vars = array( $vars = array(
'id', 'id',
@ -308,6 +310,7 @@ function view_message($id, $mode, $folder_id, $msg_id, $folder, $message_row)
'cp_row', 'cp_row',
'msg_data', 'msg_data',
'user_info', 'user_info',
'attachments',
); );
extract($phpbb_dispatcher->trigger_event('core.ucp_pm_view_message', compact($vars))); extract($phpbb_dispatcher->trigger_event('core.ucp_pm_view_message', compact($vars)));