phpBB

Code Changes

File: includes/functions_posting.php

  Unmodified   Added   Modified   Removed
Line 189Line 189

if (count($smilies))
{


if (count($smilies))
{

		$root_path = (defined('PHPBB_USE_BOARD_URL_PATH') && PHPBB_USE_BOARD_URL_PATH) ? generate_board_url() . '/' : $phpbb_path_helper->get_web_root_path();

		$root_path = $phpbb_path_helper->get_web_root_path();


foreach ($smilies as $row)
{


foreach ($smilies as $row)
{

Line 420Line 420
*/
function posting_gen_topic_icons($mode, $icon_id)
{

*/
function posting_gen_topic_icons($mode, $icon_id)
{

	global $phpbb_root_path, $config, $template, $cache;

	global $phpbb_root_path, $phpbb_path_helper, $config, $template, $cache;


// Grab icons
$icons = $cache->obtain_icons();


// Grab icons
$icons = $cache->obtain_icons();

Line 432Line 432

if (count($icons))
{


if (count($icons))
{

		$root_path = (defined('PHPBB_USE_BOARD_URL_PATH') && PHPBB_USE_BOARD_URL_PATH) ? generate_board_url() . '/' : $phpbb_root_path;

		$root_path = $phpbb_path_helper->get_web_root_path();


foreach ($icons as $id => $data)
{


foreach ($icons as $id => $data)
{

Line 834Line 834
		'FILESIZE'						=> $config['max_filesize'],
'FILE_COMMENT' => (isset($filename_data['filecomment'])) ? $filename_data['filecomment'] : '',
'MAX_ATTACHMENT_FILESIZE' => $config['max_filesize'] > 0 ? $user->lang('MAX_ATTACHMENT_FILESIZE', get_formatted_filesize($config['max_filesize'])) : '',

		'FILESIZE'						=> $config['max_filesize'],
'FILE_COMMENT' => (isset($filename_data['filecomment'])) ? $filename_data['filecomment'] : '',
'MAX_ATTACHMENT_FILESIZE' => $config['max_filesize'] > 0 ? $user->lang('MAX_ATTACHMENT_FILESIZE', get_formatted_filesize($config['max_filesize'])) : '',

		'ALLOWED_ATTACHMENTS'			=> !empty($allowed_attachments) ? implode(',', $allowed_attachments) : '',

		'ALLOWED_ATTACHMENTS'			=> !empty($allowed_attachments) ? '.' . implode(',.', $allowed_attachments) : '',

	];

/**

	];

/**

Line 1345Line 1345
	{
$post_mode = 'delete_first_post';
}

	{
$post_mode = 'delete_first_post';
}

	else if ($data['topic_last_post_id'] == $post_id)

	else if ($data['topic_last_post_id'] <= $post_id)

	{
$post_mode = 'delete_last_post';
}

	{
$post_mode = 'delete_last_post';
}

Line 2872Line 2872
					$delete_reason
));


					$delete_reason
));


 
				if ($next_post_id > 0)
{

				$meta_info = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "p=$next_post_id") . "#p$next_post_id";

				$meta_info = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "p=$next_post_id") . "#p$next_post_id";

 
				}
else
{
$meta_info = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "t=$topic_id");
}

				$message = $user->lang['POST_DELETED'];

if (!$request->is_ajax())

				$message = $user->lang['POST_DELETED'];

if (!$request->is_ajax())