forked from leftypol/leftypol
Wrap overboard api threads inside a page
This commit is contained in:
parent
2ca72c6a7c
commit
e57b760de8
1 changed files with 5 additions and 2 deletions
|
@ -468,10 +468,13 @@
|
|||
$threads[] = new Thread($post);
|
||||
}
|
||||
|
||||
$json = json_encode($api->translateCatalogPage($threads));
|
||||
// Page 0, the only page
|
||||
$threads = array($threads);
|
||||
|
||||
$json = json_encode($api->translateCatalog($threads));
|
||||
file_write($config['dir']['home'] . $board_name . '/catalog.json', $json);
|
||||
|
||||
$json = json_encode($api->translateCatalogPage($threads, true));
|
||||
$json = json_encode($api->translateCatalog($threads, true));
|
||||
file_write($config['dir']['home'] . $board_name . '/threads.json', $json);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue