mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-28 01:10:51 +01:00
fix bug with removal of telegrams
This commit is contained in:
parent
1a5b3c8480
commit
70b5c80cea
11
post.php
11
post.php
@ -1217,6 +1217,17 @@ if (isset($_POST['delete'])) {
|
|||||||
if (!$post['mod']) header('X-Associated-Content: "' . $redirect . '"');
|
if (!$post['mod']) header('X-Associated-Content: "' . $redirect . '"');
|
||||||
|
|
||||||
|
|
||||||
|
if (!isset($_POST['json_response'])) {
|
||||||
|
header('Location: ' . $redirect, true, $config['redirect_http']);
|
||||||
|
} else {
|
||||||
|
header('Content-Type: text/json; charset=utf-8');
|
||||||
|
echo json_encode(array(
|
||||||
|
'redirect' => $redirect,
|
||||||
|
'noko' => $noko,
|
||||||
|
'id' => $id
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
if ($config['try_smarter'] && $post['op'])
|
if ($config['try_smarter'] && $post['op'])
|
||||||
$build_pages = range(1, $config['max_pages']);
|
$build_pages = range(1, $config['max_pages']);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user