Browse Source

Remove buildThread() call from mod_deletefile because deleteFile()

already calls it.
pull/40/head
Macil Tech 12 years ago
parent
commit
00bd5e8d20
  1. 7
      inc/mod/pages.php

7
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();

Loading…
Cancel
Save