From 3f73c1171dd62208f3c4eb7b886d69b114692d07 Mon Sep 17 00:00:00 2001 From: Joshua Myers Date: Wed, 31 Jan 2024 15:21:06 -0600 Subject: [PATCH] Updating Code Formatting --- tinyfilemanager.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tinyfilemanager.php b/tinyfilemanager.php index 380e187..ce8ea0d 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -1018,13 +1018,10 @@ if (!empty($_FILES) && !FM_READONLY) { if (file_exists ($fullPath)) { $ext_1 = $ext ? '.'.$ext : ''; - if($overwrite_files == 'Y') - { - $fullPathTarget = $path . '/' . basename($fullPathInput, $ext_1) . $ext_1; - } - else - { - $fullPathTarget = $path . '/' . basename($fullPathInput, $ext_1) .'_'. date('ymdHis'). $ext_1; + if ($overwrite_files == 'Y') { + $fullPathTarget = $path . '/' . basename($fullPathInput, $ext_1) . $ext_1; + } else { + $fullPathTarget = $path . '/' . basename($fullPathInput, $ext_1) .'_'. date('ymdHis'). $ext_1; } } else { $fullPathTarget = $fullPath;