Browse Source

Oops, forgot to check if enabled at one point

pull/40/head
ctrlcctrlv 11 years ago
parent
commit
8c081a4ab5
  1. 2
      inc/functions.php

2
inc/functions.php

@ -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']) {

Loading…
Cancel
Save