Browse Source

add delete event

pull/40/head
Michael Foster 11 years ago
parent
commit
e7f25aa480
  1. 2
      inc/functions.php

2
inc/functions.php

@ -949,6 +949,8 @@ function deletePost($id, $error_if_doesnt_exist=true, $rebuild_after=true) {
// Delete posts and maybe replies
while ($post = $query->fetch(PDO::FETCH_ASSOC)) {
event('delete', $post);
if (!$post['thread']) {
// Delete thread HTML page
file_unlink($board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], $post['id']));

Loading…
Cancel
Save