From d322c43e419c4349dbf576a924e7b8feb33b076b Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Thu, 1 Aug 2013 03:26:39 -0400 Subject: [PATCH] Update for latest Tinyboard (table prefixes) -- breaks compatiability with earlier Tinyboard versions --- tools/rebuild.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/rebuild.php b/tools/rebuild.php index 3b5c0de2..13452264 100644 --- a/tools/rebuild.php +++ b/tools/rebuild.php @@ -81,7 +81,7 @@ foreach($boards as &$board) { continue; // do no more if($options['full']) { - $query = query(sprintf("SELECT `id` FROM `posts_%s`", $board['uri'])) or error(db_error()); + $query = query(sprintf("SELECT `id` FROM ``posts_%s``", $board['uri'])) or error(db_error()); while($post = $query->fetch()) { if(!$options['quiet']) echo "Rebuilding #{$post['id']}...\n"; @@ -89,7 +89,7 @@ foreach($boards as &$board) { } } - $query = query(sprintf("SELECT `id` FROM `posts_%s` WHERE `thread` IS NULL", $board['uri'])) or error(db_error()); + $query = query(sprintf("SELECT `id` FROM ``posts_%s`` WHERE `thread` IS NULL", $board['uri'])) or error(db_error()); while($post = $query->fetch()) { if(!$options['quiet']) echo "Rebuilding #{$post['id']}...\n";