mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +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
|
else
|
||||||
{
|
{
|
||||||
// Remove any post id anchor
|
// 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);
|
$redirect = substr($redirect, 0, $anchor_pos);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue