29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-07-04 19:13:40 +00:00

Remove duplicate code in fieldsplugin (#36434)

This commit is contained in:
Allon Moritz 2022-01-22 21:48:13 +01:00 committed by GitHub
parent f5bda2eb12
commit a92676cd0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;