diff options
| author | ctrlcctrlv <wizardchan@hush.com> | 2013-08-20 19:53:11 +0000 |
|---|---|---|
| committer | ctrlcctrlv <wizardchan@hush.com> | 2013-08-20 19:53:11 +0000 |
| commit | 8794fe0149c46038acde37d859bcfb0acdf6c1cd (patch) | |
| tree | cc9378cceec23378008f6ae50a072953d9497f31 /inc/functions.php | |
| parent | 8c081a4ab5eeccd2e0988c69a870eb0aac6b06e0 (diff) | |
Delete JSON when thread deleted
Diffstat (limited to 'inc/functions.php')
| -rw-r--r-- | inc/functions.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/functions.php b/inc/functions.php index ae178a73..02e2a932 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -959,6 +959,7 @@ function deletePost($id, $error_if_doesnt_exist=true, $rebuild_after=true) { // Delete thread HTML page file_unlink($board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], $post['id'])); file_unlink($board['dir'] . $config['dir']['res'] . sprintf($config['file_page50'], $post['id'])); + file_unlink($board['dir'] . $config['dir']['res'] . sprintf('%d.json', $post['id'])); $antispam_query = prepare('DELETE FROM ``antispam`` WHERE `board` = :board AND `thread` = :thread'); $antispam_query->bindValue(':board', $board['uri']); |
