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:
parent
f5bda2eb12
commit
a92676cd0d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user