From 113f1f3860b5221a3569bd1ca81f8db0374c56dc Mon Sep 17 00:00:00 2001 From: aB0t Date: Sat, 27 Apr 2024 15:45:07 +0200 Subject: [PATCH] Update on v2.0.2 (changes towards the next release) Here's an update on the current version, which includes changes towards the next release still in development. --- componentbuilderdynamicgetheaderstabs.php | 5 +++-- componentbuilderdynamicgetheaderstabs.xml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/componentbuilderdynamicgetheaderstabs.php b/componentbuilderdynamicgetheaderstabs.php index 947d131..9794502 100644 --- a/componentbuilderdynamicgetheaderstabs.php +++ b/componentbuilderdynamicgetheaderstabs.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 PlgContentComponentbuilderDynamicGetHeadersTabs extends CMSPlugin // add the admin view params for privacy integration $form->loadFile('dynamic_get'); // 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="dynamic_get_headers"]//field[@type="editor"]'); // check if we found any diff --git a/componentbuilderdynamicgetheaderstabs.xml b/componentbuilderdynamicgetheaderstabs.xml index c2b6e73..6475f42 100644 --- a/componentbuilderdynamicgetheaderstabs.xml +++ b/componentbuilderdynamicgetheaderstabs.xml @@ -1,7 +1,7 @@ PLG_CONTENT_COMPONENTBUILDERDYNAMICGETHEADERSTABS - 24th April, 2024 + 27th April, 2024 Llewellyn van der Merwe joomla@vdm.io https://dev.vdm.io