#405 Fallback to ticket attachments folder for legacy KB attachments

merge-requests/3/head
Mike Koch 9 years ago
parent d6956c9e06
commit 430087e533

@ -126,9 +126,14 @@ if (isset($_GET['kb_att'])) {
}
// Perhaps the file has been deleted?
if (!file_exists($realpath)) {
// Let's try the ticket attachment folder. Legacy KB attachments are not automatically migrated.
$realpath = $hesk_settings['attach_dir'] . '/' . $file['saved_name'];
if (!file_exists($realpath)) {
hesk_error($hesklang['attdel']);
}
}
// Update the download count
if (isset($_GET['kb_att'])) {
@ -162,4 +167,3 @@ if ($file['size'] > $chunksize) {
}
exit();
?>

Loading…
Cancel
Save