diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-01 03:26:39 -0400 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-01 03:26:39 -0400 |
| commit | d322c43e419c4349dbf576a924e7b8feb33b076b (patch) | |
| tree | 473bf0feae9a828d8b231171b875964eebe59441 | |
| parent | b2999760075df7da4606f3190e878b79dd7bfe61 (diff) | |
Update for latest Tinyboard (table prefixes) -- breaks compatiability with earlier Tinyboard versions
| -rw-r--r-- | tools/rebuild.php | 4 |
1 files 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"; |
