Oops, forgot to check if enabled at one point

This commit is contained in:
ctrlcctrlv 2013-08-20 18:59:20 +00:00
parent cc5173f430
commit 8c081a4ab5

View File

@ -1340,10 +1340,12 @@ function buildIndex() {
$filename = $board['dir'] . ($page==1 ? $config['file_index'] : sprintf($config['file_page'], $page));
file_unlink($filename);
if ($config['api']['enabled']) {
$jsonFilename = $board['dir'] . ($page-1) . ".json";
file_unlink($jsonFilename);
}
}
}
// json api catalog
if ($config['api']['enabled']) {