diff options
| author | Macil Tech <maciltech@gmail.com> | 2013-01-18 23:13:08 -0600 |
|---|---|---|
| committer | Macil Tech <maciltech@gmail.com> | 2013-01-18 23:13:08 -0600 |
| commit | 00bd5e8d2033c14fe1fd7b15a0db1b1827d549b9 (patch) | |
| tree | 104f4902230b83d54649d6409f152e2fbbff152c /inc/mod/pages.php | |
| parent | ced540a66ee223ba2e3e2b8dbaaf50e5b48a13d8 (diff) | |
Remove buildThread() call from mod_deletefile because deleteFile()
already calls it.
Diffstat (limited to 'inc/mod/pages.php')
| -rw-r--r-- | inc/mod/pages.php | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 4f1ab73c..6261d4af 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -1019,13 +1019,6 @@ function mod_deletefile($board, $post) { // Record the action modLog("Deleted file from post #{$post}"); - $query = prepare(sprintf('SELECT `thread` FROM `posts_%s` WHERE `id` = :id', $board)); - $query->bindValue(':id', $post); - $query->execute() or error(db_error($query)); - $thread = $query->fetchColumn(); - - // Rebuild thread - buildThread($thread ? $thread : $post); // Rebuild board buildIndex(); |
