This commit is contained in:
ctrlcctrlv 2013-08-20 21:35:16 +00:00 committed by Michael Foster
parent ddd34347f8
commit ed142a5e5d
2 changed files with 4 additions and 3 deletions

View file

@ -1296,7 +1296,7 @@ function buildIndex() {
$antibot = create_antibot($board['uri']);
if ($config['api']['enabled']) {
$api = new Api($config);
$api = new Api();
$catalog = array();
}
@ -1771,7 +1771,7 @@ function buildThread($id, $return = false, $mod = false) {
// json api
if ($config['api']['enabled']) {
$api = new Api($config);
$api = new Api();
$json = json_encode($api->translateThread($thread));
$jsonFilename = $board['dir'] . $config['dir']['res'] . $id . ".json";
file_write($jsonFilename, $json);