[B&D] did not actually delete the post correctly

This commit is contained in:
Savetheinternet 2011-03-14 15:57:12 +11:00
parent 9703adb0e7
commit e4e9a3b9bf

View File

@ -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