|
@@ 1209-1213 (lines=5) @@
|
| 1206 |
|
$context['repair_errors']['missing_thumbnail_parent']++; |
| 1207 |
|
|
| 1208 |
|
// If we are repairing remove the file from disk now. |
| 1209 |
|
if ($fix_errors && in_array('missing_thumbnail_parent', $to_fix)) |
| 1210 |
|
{ |
| 1211 |
|
$filename = getAttachmentFilename($row['filename'], $row['id_attach'], $row['id_folder'], false, $row['file_hash']); |
| 1212 |
|
@unlink($filename); |
| 1213 |
|
} |
| 1214 |
|
} |
| 1215 |
|
} |
| 1216 |
|
if ($smcFunc['db_num_rows']($result) != 0) |
|
@@ 1555-1559 (lines=5) @@
|
| 1552 |
|
$context['repair_errors']['attachment_no_msg']++; |
| 1553 |
|
|
| 1554 |
|
// If we are repairing remove the file from disk now. |
| 1555 |
|
if ($fix_errors && in_array('attachment_no_msg', $to_fix)) |
| 1556 |
|
{ |
| 1557 |
|
$filename = getAttachmentFilename($row['filename'], $row['id_attach'], $row['id_folder'], false, $row['file_hash']); |
| 1558 |
|
@unlink($filename); |
| 1559 |
|
} |
| 1560 |
|
} |
| 1561 |
|
if ($smcFunc['db_num_rows']($result) != 0) |
| 1562 |
|
$to_fix[] = 'attachment_no_msg'; |