From a92676cd0d1e3849dea059eb0dc2e8ca206135d0 Mon Sep 17 00:00:00 2001 From: Allon Moritz Date: Sat, 22 Jan 2022 21:48:13 +0100 Subject: [PATCH] Remove duplicate code in fieldsplugin (#36434) --- .../components/com_fields/src/Plugin/FieldsPlugin.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/administrator/components/com_fields/src/Plugin/FieldsPlugin.php b/administrator/components/com_fields/src/Plugin/FieldsPlugin.php index aabefe8d741..eab4b047095 100644 --- a/administrator/components/com_fields/src/Plugin/FieldsPlugin.php +++ b/administrator/components/com_fields/src/Plugin/FieldsPlugin.php @@ -148,11 +148,6 @@ abstract class FieldsPlugin extends CMSPlugin // Get the path for the layout file $path = PluginHelper::getLayoutPath('fields', $this->_name, $field->type); - if (!file_exists($path)) - { - $path = PluginHelper::getLayoutPath('fields', $this->_name, $field->type); - } - // Render the layout ob_start(); include $path;