Browse Source

Oops, forgot to check if enabled at one point

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

8
inc/functions.php

@ -1339,9 +1339,11 @@ function buildIndex() {
for (;$page<=$config['max_pages'];$page++) {
$filename = $board['dir'] . ($page==1 ? $config['file_index'] : sprintf($config['file_page'], $page));
file_unlink($filename);
$jsonFilename = $board['dir'] . ($page-1) . ".json";
file_unlink($jsonFilename);
if ($config['api']['enabled']) {
$jsonFilename = $board['dir'] . ($page-1) . ".json";
file_unlink($jsonFilename);
}
}
}

Loading…
Cancel
Save