phpBB

Code Changes

File: includes/ucp/ucp_pm_compose.php

  Unmodified   Added   Modified   Removed
Line 26Line 26
function compose_pm($id, $mode, $action, $user_folders = array())
{
global $template, $db, $auth, $user, $cache;

function compose_pm($id, $mode, $action, $user_folders = array())
{
global $template, $db, $auth, $user, $cache;

	global $phpbb_root_path, $phpEx, $config;

	global $phpbb_root_path, $phpEx, $config, $language;

	global $request, $phpbb_dispatcher, $phpbb_container;

// Damn php and globals - i know, this is horrible

	global $request, $phpbb_dispatcher, $phpbb_container;

// Damn php and globals - i know, this is horrible

Line 799Line 799
		extract($phpbb_dispatcher->trigger_event('core.ucp_pm_compose_modify_parse_before', compact($vars)));

// Parse Attachments - before checksum is calculated

		extract($phpbb_dispatcher->trigger_event('core.ucp_pm_compose_modify_parse_before', compact($vars)));

// Parse Attachments - before checksum is calculated

 
		if ($message_parser->check_attachment_form_token($language, $request, 'ucp_pm_compose'))
{

		$message_parser->parse_attachments('fileupload', $action, 0, $submit, $preview, $refresh, true);

		$message_parser->parse_attachments('fileupload', $action, 0, $submit, $preview, $refresh, true);

 
		}


if (count($message_parser->warn_msg) && !($remove_u || $remove_g || $add_to || $add_bcc))
{


if (count($message_parser->warn_msg) && !($remove_u || $remove_g || $add_to || $add_bcc))
{

Line 1007Line 1010
	if (($action == 'reply' || $action == 'quote' || $action == 'quotepost') && !$preview && !$refresh)
{
$message_subject = ((!preg_match('/^Re:/', $message_subject)) ? 'Re: ' : '') . censor_text($message_subject);

	if (($action == 'reply' || $action == 'quote' || $action == 'quotepost') && !$preview && !$refresh)
{
$message_subject = ((!preg_match('/^Re:/', $message_subject)) ? 'Re: ' : '') . censor_text($message_subject);

 

/**
* This event allows you to modify the PM subject of the PM being quoted
*
* @event core.pm_modify_message_subject
* @var string message_subject String with the PM subject already censored.
* @since 3.2.8-RC1
*/
$vars = array('message_subject');
extract($phpbb_dispatcher->trigger_event('core.pm_modify_message_subject', compact($vars)));

	}

if ($action == 'forward' && !$preview && !$refresh && !$submit)

	}

if ($action == 'forward' && !$preview && !$refresh && !$submit)