phpBB

Code Changes

File: posting.php

  Unmodified   Added   Modified   Removed
Line 596Line 596

// Set some default variables
$uninit = array('post_attachment' => 0, 'poster_id' => $user->data['user_id'], 'enable_magic_url' => 0, 'topic_status' => 0, 'topic_type' => POST_NORMAL, 'post_subject' => '', 'topic_title' => '', 'post_time' => 0, 'post_edit_reason' => '', 'notify_set' => 0);


// Set some default variables
$uninit = array('post_attachment' => 0, 'poster_id' => $user->data['user_id'], 'enable_magic_url' => 0, 'topic_status' => 0, 'topic_type' => POST_NORMAL, 'post_subject' => '', 'topic_title' => '', 'post_time' => 0, 'post_edit_reason' => '', 'notify_set' => 0);

 

/**
* This event allows you to modify the default variables for post_data, and unset them in post_data if needed
*
* @event core.posting_modify_default_variables
* @var array post_data Array with post data
* @var array uninit Array with default vars to put into post_data, if they aren't there
* @since 3.2.5-RC1
*/
$vars = array(
'post_data',
'uninit',
);
extract($phpbb_dispatcher->trigger_event('core.posting_modify_default_variables', compact($vars)));


foreach ($uninit as $var_name => $default_value)
{


foreach ($uninit as $var_name => $default_value)
{

Line 832Line 846
	load_drafts($topic_id, $forum_id);
}


	load_drafts($topic_id, $forum_id);
}


 
/** @var \phpbb\textformatter\utils_interface $bbcode_utils */

$bbcode_utils = $phpbb_container->get('text_formatter.utils');

if ($submit || $preview || $refresh)

$bbcode_utils = $phpbb_container->get('text_formatter.utils');

if ($submit || $preview || $refresh)

Line 1634Line 1649
						'user_id' => $post_data['poster_id'],
);


						'user_id' => $post_data['poster_id'],
);


	phpbb_format_quote($config['allow_bbcode'], $quote_attributes, $bbcode_utils, $message_parser);



	/** @var \phpbb\language\language $language */
$language = $phpbb_container->get('language');
phpbb_format_quote($language, $message_parser, $bbcode_utils, $bbcode_status, $quote_attributes);

}

if (($mode == 'reply' || $mode == 'quote') && !$submit && !$preview && !$refresh)

}

if (($mode == 'reply' || $mode == 'quote') && !$submit && !$preview && !$refresh)