From 8c5f41585ec6d0e89b6ddef0591c42c545d6acc1 Mon Sep 17 00:00:00 2001 From: aB0t Date: Sat, 27 Apr 2024 15:45:07 +0200 Subject: [PATCH] Update on v2.0.1 (changes towards the next release) Here's an update on the current version, which includes changes towards the next release still in development. --- componentbuildersiteheaderstabs.php | 5 +++-- componentbuildersiteheaderstabs.xml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/componentbuildersiteheaderstabs.php b/componentbuildersiteheaderstabs.php index e0a6452..20291e3 100644 --- a/componentbuildersiteheaderstabs.php +++ b/componentbuildersiteheaderstabs.php @@ -14,7 +14,8 @@ defined('_JEXEC') or die('Restricted access'); use Joomla\CMS\Form\Form; use Joomla\CMS\Plugin\CMSPlugin; -use VDM\Joomla\Utilities\ArrayHelper; +use VDM\Joomla\Utilities\ArrayHelper; +use Joomla\CMS\Component\ComponentHelper; JLoader::register('ComponentbuilderHelper', JPATH_ADMINISTRATOR . '/components/com_componentbuilder/helpers/componentbuilder.php'); @@ -57,7 +58,7 @@ class PlgContentComponentbuilderSiteHeadersTabs extends CMSPlugin // add the admin view params for privacy integration $form->loadFile('site_view'); // update all editors to use this components global editor - $global_editor = \JComponentHelper::getParams('com_componentbuilder')->get('editor', 'none'); + $global_editor = ComponentHelper::getParams('com_componentbuilder')->get('editor', 'none'); // set the field editor value (with none as fallback) $editors = $form->getXml()->xpath('descendant::fields[@name="site_view_headers"]//field[@type="editor"]'); // check if we found any diff --git a/componentbuildersiteheaderstabs.xml b/componentbuildersiteheaderstabs.xml index 4c40396..57f8a0b 100644 --- a/componentbuildersiteheaderstabs.xml +++ b/componentbuildersiteheaderstabs.xml @@ -1,7 +1,7 @@ PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS - 24th April, 2024 + 27th April, 2024 Llewellyn van der Merwe joomla@vdm.io https://dev.vdm.io