Line 189 | Line 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 420 | Line 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 432 | Line 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 834 | Line 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 1253 | Line 1253 |
---|
'POST_AUTHOR' => get_username_string('username', $poster_id, $row['username'], $row['user_colour'], $row['post_username']), 'U_POST_AUTHOR' => get_username_string('profile', $poster_id, $row['username'], $row['user_colour'], $row['post_username']),
|
'POST_AUTHOR' => get_username_string('username', $poster_id, $row['username'], $row['user_colour'], $row['post_username']), 'U_POST_AUTHOR' => get_username_string('profile', $poster_id, $row['username'], $row['user_colour'], $row['post_username']),
|
'S_HAS_ATTACHMENTS' => (!empty($attachments[$row['post_id']])) ? true : false, 'S_FRIEND' => ($row['friend']) ? true : false, 'S_IGNORE_POST' => ($row['foe']) ? true : false, 'L_IGNORE_POST' => ($row['foe']) ? sprintf($user->lang['POST_BY_FOE'], get_username_string('full', $poster_id, $row['username'], $row['user_colour'], $row['post_username']), "<a href=\"{$u_show_post}\" onclick=\"phpbb.toggleDisplay('{$post_anchor}', 1); return false;\">", '</a>') : '', 'S_POST_DELETED' => ($row['post_visibility'] == ITEM_DELETED) ? true : false,
| 'S_HAS_ATTACHMENTS' => !empty($attachments[$row['post_id']]), 'S_FRIEND' => (bool) $row['friend'], 'S_IGNORE_POST' => (bool) $row['foe'], 'L_IGNORE_POST' => $row['foe'] ? $user->lang('POST_BY_FOE', get_username_string('full', $poster_id, $row['username'], $row['user_colour'], $row['post_username']), "<a href=\"{$u_show_post}\" onclick=\"phpbb.toggleDisplay('{$post_anchor}', 1); return false;\">", '</a>') : '', 'S_POST_DELETED' => $row['post_visibility'] == ITEM_DELETED,
|
'L_DELETE_POST' => $l_deleted_message,
'POST_SUBJECT' => $post_subject,
| 'L_DELETE_POST' => $l_deleted_message,
'POST_SUBJECT' => $post_subject,
|
Line 1345 | Line 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 2872 | Line 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())
|