mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge branch '3.2.x'
This commit is contained in:
commit
630320d9d2
1 changed files with 11 additions and 0 deletions
|
@ -449,6 +449,17 @@ function compose_pm($id, $mode, $action, $user_folders = array())
|
||||||
$message_attachment = 0;
|
$message_attachment = 0;
|
||||||
$message_text = $message_subject = '';
|
$message_text = $message_subject = '';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Predefine message text and subject
|
||||||
|
*
|
||||||
|
* @event core.ucp_pm_compose_predefined_message
|
||||||
|
* @var string message_text Message text
|
||||||
|
* @var string message_subject Messate subject
|
||||||
|
* @since 3.1.11-RC1
|
||||||
|
*/
|
||||||
|
$vars = array('message_text', 'message_subject');
|
||||||
|
extract($phpbb_dispatcher->trigger_event('core.ucp_pm_compose_predefined_message', compact($vars)));
|
||||||
|
|
||||||
if ($to_user_id && $to_user_id != ANONYMOUS && $action == 'post')
|
if ($to_user_id && $to_user_id != ANONYMOUS && $action == 'post')
|
||||||
{
|
{
|
||||||
$address_list['u'][$to_user_id] = 'to';
|
$address_list['u'][$to_user_id] = 'to';
|
||||||
|
|
Loading…
Add table
Reference in a new issue