diff options
| author | ctrlcctrlv <wizardchan@hush.com> | 2013-08-20 18:17:05 +0000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-21 22:35:01 +1000 |
| commit | ecda099dfb73f9e967a33ce96e45dc7ba1217bf6 (patch) | |
| tree | e3f649c4c71445f0d869f8b7a44c20bbc9078130 /inc/functions.php | |
| parent | 01e906b1d37858168d4e8b2b7faa114fd4b9f63e (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 98cf9d77..aa92d0ef 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -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); |
