mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
Merge pull request #6367 from rxu/ticket/16966
[ticket/16966] Fix redirect link after permanently deleting posts
This commit is contained in:
commit
5a3a91b464
1 changed files with 1 additions and 1 deletions
|
@ -1245,7 +1245,7 @@ function mcp_delete_post($post_ids, $is_soft = false, $soft_delete_reason = '',
|
|||
else
|
||||
{
|
||||
// Remove any post id anchor
|
||||
if ($anchor_pos = (strrpos($redirect, '#p')) !== false)
|
||||
if (($anchor_pos = strrpos($redirect, '#p')) !== false)
|
||||
{
|
||||
$redirect = substr($redirect, 0, $anchor_pos);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue