path . '/' . $comic_file, $comic_file, true);
if (!is_null($wrote_thumbnail)) {
if (is_array($wrote_thumbnail)) {
$files_created_in_operation = array_merge($files_created_in_operation, $wrote_thumbnail);
$cpm_config->messages[] = sprintf(__("Wrote thumbnail for %s.", 'comicpress-manager'), $comic_file);
} else {
$cpm_config->warnings[] = sprintf(__("Could not write thumbnail for %s. Check the permissions on the thumbnail directories.", 'comicpress-manager'), $comic_file);
}
}
if (function_exists('cpm_wpmu_is_over_storage_limit')) {
if (cpm_wpmu_is_over_storage_limit()) { $ok_to_keep_uploading = false; break; }
}
}
if (!$ok_to_keep_uploading) {
$cpm_config->messages = array();
$cpm_config->warnings = array($cpm_config->wpmu_disk_space_message);
foreach ($files_created_in_operation as $file) { @unlink($file); }
}
}
?>