mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-24 07:30:10 +01:00
[B&D] did not actually delete the post correctly
This commit is contained in:
parent
9703adb0e7
commit
e4e9a3b9bf
6
mod.php
6
mod.php
@ -1026,6 +1026,12 @@
|
|||||||
if($mod['type'] >= $config['mod']['delete'] && isset($_POST['delete']) && isset($_POST['board'])) {
|
if($mod['type'] >= $config['mod']['delete'] && isset($_POST['delete']) && isset($_POST['board'])) {
|
||||||
openBoard($_POST['board']);
|
openBoard($_POST['board']);
|
||||||
deletePost(round($_POST['delete']));
|
deletePost(round($_POST['delete']));
|
||||||
|
|
||||||
|
// Record the action
|
||||||
|
modLog("Deleted post #{$post}");
|
||||||
|
|
||||||
|
// Rebuild board
|
||||||
|
buildIndex();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Redirect
|
// Redirect
|
||||||
|
Loading…
Reference in New Issue
Block a user