From 6798f076caf679b77b527cefe15761391cd7c3fb Mon Sep 17 00:00:00 2001 From: Brian Teeman Date: Mon, 27 Feb 2023 15:35:56 +0000 Subject: [PATCH] Revert 39329 due to issue in media folders of template manager (#39943) Co-authored-by: Quy --- .../components/com_templates/src/Model/TemplateModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/administrator/components/com_templates/src/Model/TemplateModel.php b/administrator/components/com_templates/src/Model/TemplateModel.php index 4ff291a6b2af9..725de71de64d6 100644 --- a/administrator/components/com_templates/src/Model/TemplateModel.php +++ b/administrator/components/com_templates/src/Model/TemplateModel.php @@ -1802,7 +1802,7 @@ public function getMediaFiles() $template->xmldata = TemplatesHelper::parseXMLTemplateFile($template->client_id === 0 ? JPATH_ROOT : JPATH_ROOT . '/administrator', $template->name); } - if (empty($template->xmldata->inheritable) || (isset($template->xmldata->parent) && $template->xmldata->parent === '')) { + if (!isset($template->xmldata->inheritable) || (isset($template->xmldata->parent) && $template->xmldata->parent === '')) { return $result; }