forked from leftypol/leftypol
Custom fields in API, read config.php for info. Non-4chan compatible fields removed.
This commit is contained in:
parent
01e906b1d3
commit
ecda099dfb
3 changed files with 39 additions and 38 deletions
|
@ -1296,7 +1296,7 @@ function buildIndex() {
|
|||
$antibot = create_antibot($board['uri']);
|
||||
|
||||
if ($config['api']['enabled']) {
|
||||
$api = new Api();
|
||||
$api = new Api($config);
|
||||
$catalog = array();
|
||||
}
|
||||
|
||||
|
@ -1771,7 +1771,7 @@ function buildThread($id, $return = false, $mod = false) {
|
|||
|
||||
// json api
|
||||
if ($config['api']['enabled']) {
|
||||
$api = new Api();
|
||||
$api = new Api($config);
|
||||
$json = json_encode($api->translateThread($thread));
|
||||
$jsonFilename = $board['dir'] . $config['dir']['res'] . $id . ".json";
|
||||
file_write($jsonFilename, $json);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue