From f70ea39171d800b2728d2f144ed87e1c9f09c4d7 Mon Sep 17 00:00:00 2001 From: Roland Dalmulder Date: Fri, 3 Apr 2020 17:46:07 +0200 Subject: [PATCH] Codestyle fixing Signed-off-by: Roland Dalmulder --- .../components/com_patchtester/PatchTester/Model/PullModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/administrator/components/com_patchtester/PatchTester/Model/PullModel.php b/administrator/components/com_patchtester/PatchTester/Model/PullModel.php index 57e45dc..1743df0 100644 --- a/administrator/components/com_patchtester/PatchTester/Model/PullModel.php +++ b/administrator/components/com_patchtester/PatchTester/Model/PullModel.php @@ -605,7 +605,7 @@ class PullModel extends AbstractModel // We only create a backup if the file already exists if ($file->action === 'deleted' || (file_exists(JPATH_ROOT . '/' . $file->filename) - && $file->action === 'modified') + && $file->action === 'modified') || (file_exists(JPATH_ROOT . '/' . $file->originalFile) && $file->action === 'renamed')) { $filename = $file->action === 'renamed' ? $file->originalFile : $file->filename;