1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-27 17:00:52 +01:00
This commit is contained in:
Michael Foster 2013-08-19 01:48:40 +10:00
parent 0e89d39e67
commit 4562457de7

View File

@ -47,10 +47,10 @@ foreach ($boards as $board) {
}
}
foreach ($stray_src as $thumb) {
foreach ($stray_thumb as $thumb) {
$stats['deleted']++;
$stats['size'] = filesize($board['dir'] . $config['dir']['thumb'] . $thumb);
if (!file_unlink($board['dir'] . $config['dir']['thumb'] . $src)) {
if (!file_unlink($board['dir'] . $config['dir']['thumb'] . $thumb)) {
$er = error_get_last();
die("error: " . $er['message'] . "\n");
}