+ $fileHelper = new ttFileHelper($err);
+ $deleted = $fileHelper->deleteFile($file);
+ if ($deleted) {
+ if ($entity_type == 'time') {
+ header('Location: time_files.php?id='.$file['entity_id']);
+ }
+ if ($entity_type == 'project') {
+ header('Location: project_files.php?id='.$file['entity_id']);
+ }