mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-28 01:10:51 +01:00
Update for latest Tinyboard (table prefixes) -- breaks compatiability with earlier Tinyboard versions
This commit is contained in:
parent
b299976007
commit
d322c43e41
@ -81,7 +81,7 @@ foreach($boards as &$board) {
|
|||||||
continue; // do no more
|
continue; // do no more
|
||||||
|
|
||||||
if($options['full']) {
|
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()) {
|
while($post = $query->fetch()) {
|
||||||
if(!$options['quiet'])
|
if(!$options['quiet'])
|
||||||
echo "Rebuilding #{$post['id']}...\n";
|
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()) {
|
while($post = $query->fetch()) {
|
||||||
if(!$options['quiet'])
|
if(!$options['quiet'])
|
||||||
echo "Rebuilding #{$post['id']}...\n";
|
echo "Rebuilding #{$post['id']}...\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user