diff options
| author | ctrlcctrlv <wizardchan@hush.com> | 2013-08-20 18:17:05 +0000 |
|---|---|---|
| committer | ctrlcctrlv <wizardchan@hush.com> | 2013-08-20 18:17:05 +0000 |
| commit | 3e9f4f101ab07ed69d202577821d9c3b0fb414f7 (patch) | |
| tree | f9d4c4539de5c47f7650df4dfa54bf2fafaa69f3 /inc/functions.php | |
| parent | a29a9324eaec81938869ceb66cb99b2deebb84b1 (diff) | |
Custom fields in API, read config.php for info. Non-4chan compatible fields removed.
Diffstat (limited to 'inc/functions.php')
| -rw-r--r-- | inc/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/functions.php b/inc/functions.php index a8dd1dda..15007505 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1300,7 +1300,7 @@ function buildIndex() { $antibot = create_antibot($board['uri']); if ($config['api']['enabled']) { - $api = new Api(); + $api = new Api($config); $catalog = array(); } @@ -1772,7 +1772,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); |
