1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-18 03:37:35 +01:00

Bug fix: HTML files for old pages were not being deleted

This commit is contained in:
Savetheinternet 2011-10-11 02:57:37 +11:00
parent 27ed4cccfb
commit 9726a710bc

View File

@ -1139,7 +1139,7 @@
}
if($page < $config['max_pages']) {
for(;$page<=$config['max_pages'];$page++) {
$filename = $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);
}
}