mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 22:08:54 +00:00
[ticket/17029] Fall back to redirecting to topic when post id is invalid
PHPBB3-17029
This commit is contained in:
parent
2563561663
commit
10330e5867
1 changed files with 8 additions and 1 deletions
|
@ -2872,7 +2872,14 @@ function phpbb_handle_post_delete($forum_id, $topic_id, $post_id, &$post_data, $
|
||||||
$delete_reason
|
$delete_reason
|
||||||
));
|
));
|
||||||
|
|
||||||
$meta_info = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "p=$next_post_id") . "#p$next_post_id";
|
if ($next_post_id > 0)
|
||||||
|
{
|
||||||
|
$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'];
|
$message = $user->lang['POST_DELETED'];
|
||||||
|
|
||||||
if (!$request->is_ajax())
|
if (!$request->is_ajax())
|
||||||
|
|
Loading…
Add table
Reference in a new issue