forked from joomla/Component-Builder
only add media if path is one value
This commit is contained in:
parent
27ff09226b
commit
ba07f1aae3
@ -1130,7 +1130,7 @@ class Structure extends Get
|
||||
{
|
||||
$this->fileContentStatic['###EXSTRA_MEDIA_FOLDERS###'] = '';
|
||||
}
|
||||
if (count($pathArray) >= 1 && $firstFolder === 'media')
|
||||
if (count($pathArray) == 1 && $firstFolder === 'media')
|
||||
{
|
||||
$this->fileContentStatic['###EXSTRA_MEDIA_FOLDERS###'] .= PHP_EOL."\t\t<folder>".$lastFolder."</folder>";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user