mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-30 20:03:45 +01:00
Oops, forgot to check if enabled at one point
This commit is contained in:
parent
cc5173f430
commit
8c081a4ab5
@ -1340,10 +1340,12 @@ function buildIndex() {
|
|||||||
$filename = $board['dir'] . ($page==1 ? $config['file_index'] : sprintf($config['file_page'], $page));
|
$filename = $board['dir'] . ($page==1 ? $config['file_index'] : sprintf($config['file_page'], $page));
|
||||||
file_unlink($filename);
|
file_unlink($filename);
|
||||||
|
|
||||||
|
if ($config['api']['enabled']) {
|
||||||
$jsonFilename = $board['dir'] . ($page-1) . ".json";
|
$jsonFilename = $board['dir'] . ($page-1) . ".json";
|
||||||
file_unlink($jsonFilename);
|
file_unlink($jsonFilename);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// json api catalog
|
// json api catalog
|
||||||
if ($config['api']['enabled']) {
|
if ($config['api']['enabled']) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user