1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-29 09:44:28 +01:00

Remove buildThread() call from mod_deletefile because deleteFile()

already calls it.
This commit is contained in:
Macil Tech 2013-01-18 23:13:08 -06:00
parent e19b283c7e
commit 6b3d02e4fa

View File

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