mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[feature/events] Adding ledge ucp_pm_viewmesssage
Used by phpBB Gallery PHPBB3-9550
This commit is contained in:
parent
1a7f83948e
commit
8d4c7d2e80
1 changed files with 6 additions and 1 deletions
|
@ -21,7 +21,7 @@ if (!defined('IN_PHPBB'))
|
||||||
function view_message($id, $mode, $folder_id, $msg_id, $folder, $message_row)
|
function view_message($id, $mode, $folder_id, $msg_id, $folder, $message_row)
|
||||||
{
|
{
|
||||||
global $user, $template, $auth, $db, $cache;
|
global $user, $template, $auth, $db, $cache;
|
||||||
global $phpbb_root_path, $request, $phpEx, $config;
|
global $phpbb_root_path, $request, $phpEx, $config, $phpbb_dispatcher;
|
||||||
|
|
||||||
$user->add_lang(array('viewtopic', 'memberlist'));
|
$user->add_lang(array('viewtopic', 'memberlist'));
|
||||||
|
|
||||||
|
@ -268,6 +268,11 @@ function view_message($id, $mode, $folder_id, $msg_id, $folder, $message_row)
|
||||||
'U_FORWARD_PM' => ($config['forward_pm'] && $auth->acl_get('u_sendpm') && $auth->acl_get('u_pm_forward')) ? "$url&mode=compose&action=forward&f=$folder_id&p=" . $message_row['msg_id'] : '')
|
'U_FORWARD_PM' => ($config['forward_pm'] && $auth->acl_get('u_sendpm') && $auth->acl_get('u_pm_forward')) ? "$url&mode=compose&action=forward&f=$folder_id&p=" . $message_row['msg_id'] : '')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$vars = array('id', 'mode', 'folder_id', 'msg_id', 'folder', 'message_row', 'cp_row');
|
||||||
|
$event = new phpbb_event_data(compact($vars));
|
||||||
|
$phpbb_dispatcher->dispatch('core.ucp_pm_viewmesssage', $event);
|
||||||
|
extract($event->get_data_filtered($vars));
|
||||||
|
|
||||||
// Display the custom profile fields
|
// Display the custom profile fields
|
||||||
if (!empty($cp_row['row']))
|
if (!empty($cp_row['row']))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue