phpBB

Code Changes

File: includes/ucp/ucp_pm_viewmessage.php

  Unmodified   Added   Modified   Removed
Line 33Line 33
	$folder_id	= (int) $folder_id;
$author_id = (int) $message_row['author_id'];
$view = $request->variable('view', '');

	$folder_id	= (int) $folder_id;
$author_id = (int) $message_row['author_id'];
$view = $request->variable('view', '');

 

/**
* Modify private message data before it is prepared to be displayed
*
* @event core.ucp_pm_view_message_before
* @var int folder_id ID of the folder the message is in
* @var array folder Array with data of user's message folders
* @var int msg_id ID of the private message
* @var array message_row Array with message data
* @var int author_id ID of the message author
* @since 3.2.10-RC1
* @since 3.3.1-RC1
*/
$vars = [
'folder_id',
'folder',
'msg_id',
'message_row',
'author_id',
];
extract($phpbb_dispatcher->trigger_event('core.ucp_pm_view_message_before', compact($vars)));


// Not able to view message, it was deleted by the sender
if ($message_row['pm_deleted'])


// Not able to view message, it was deleted by the sender
if ($message_row['pm_deleted'])

Line 296Line 317
	 * @var	array	cp_row		Array with senders custom profile field data
* @var array msg_data Template array with message data
* @var array user_info User data of the sender

	 * @var	array	cp_row		Array with senders custom profile field data
* @var array msg_data Template array with message data
* @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(
'id',

	 */
$vars = array(
'id',

Line 308Line 331
		'cp_row',
'msg_data',
'user_info',

		'cp_row',
'msg_data',
'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)));