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 eabed0199b
commit 79cc1c5238

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);
}
}