Browse Source

rebuild thread after rebuilding post

pull/40/head
Savetheinternet 11 years ago
parent
commit
0df1e4972d
  1. 4
      inc/functions.php

4
inc/functions.php

@ -702,7 +702,7 @@
function rebuildPost($id) {
global $board;
$query = prepare(sprintf("SELECT `body_nomarkup` FROM `posts_%s` WHERE `id` = :id", $board['uri']));
$query = prepare(sprintf("SELECT `body_nomarkup`, `thread` FROM `posts_%s` WHERE `id` = :id", $board['uri']));
$query->bindValue(':id', $id, PDO::PARAM_INT);
$query->execute() or error(db_error($query));
@ -719,6 +719,8 @@
$query->bindValue(':id', $id, PDO::PARAM_INT);
$query->execute() or error(db_error($query));
buildThread($post['thread'] ? $post['thread'] : $id);
return true;
}

Loading…
Cancel
Save