Browse Source

Update for latest Tinyboard (table prefixes) -- breaks compatiability with earlier Tinyboard versions

pull/40/head
Michael Foster 11 years ago
parent
commit
d322c43e41
  1. 4
      tools/rebuild.php

4
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";

Loading…
Cancel
Save