Skip to content

Commit 6be0f07

Browse files
committed
Fix duplicate code from merge conflict
1 parent eefb165 commit 6be0f07

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

plugins/filesystem/local/src/Adapter/LocalAdapter.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -520,10 +520,6 @@ private function copyFile(string $sourcePath, string $destinationPath, bool $for
520520
throw new \Exception(Text::_('COM_MEDIA_MOVE_FILE_EXTENSION_INVALID'));
521521
}
522522

523-
if (!MediaHelper::checkFileExtension(pathinfo($destinationPath, PATHINFO_EXTENSION))) {
524-
throw new \Exception(Text::_('COM_MEDIA_MOVE_FILE_EXTENSION_INVALID'));
525-
}
526-
527523
if (file_exists($destinationPath) && !$force) {
528524
throw new \Exception(Text::_('COM_MEDIA_COPY_FILE_NOT_POSSIBLE_FILE_ALREADY_EXISTS'));
529525
}

0 commit comments

Comments
 (0)