diff options
| author | ctrlcctrlv <wizardchan@hush.com> | 2013-08-20 21:35:16 +0000 |
|---|---|---|
| committer | ctrlcctrlv <wizardchan@hush.com> | 2013-08-20 21:35:16 +0000 |
| commit | c61760317976483bd0a4202f238703afd5e228d4 (patch) | |
| tree | 0d3f4b89c5e7d653881becbe92b1a2d296da3cf3 /inc/functions.php | |
| parent | 31aad827add4abfe6ece70a916967b9e09ec2511 (diff) | |
;_;
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 02e2a932..8de88ecf 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1301,7 +1301,7 @@ function buildIndex() { $antibot = create_antibot($board['uri']); if ($config['api']['enabled']) { - $api = new Api($config); + $api = new Api(); $catalog = array(); } @@ -1775,7 +1775,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); |
