From c740f8e5b5bb628f8fac9838ab3f3ca679fe3b5b Mon Sep 17 00:00:00 2001 From: aB0t Date: Wed, 18 Oct 2023 09:28:04 +0200 Subject: [PATCH] Update on v2.0.2 (beta for next version) Here's an update on the current version, which includes changes towards the next release still in beta. --- componentbuilderdynamicgetheaderstabs.php | 5 +++-- componentbuilderdynamicgetheaderstabs.xml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/componentbuilderdynamicgetheaderstabs.php b/componentbuilderdynamicgetheaderstabs.php index b3c1996..7e096dc 100644 --- a/componentbuilderdynamicgetheaderstabs.php +++ b/componentbuilderdynamicgetheaderstabs.php @@ -13,7 +13,8 @@ defined('_JEXEC') or die('Restricted access'); use Joomla\CMS\Form\Form; -use Joomla\CMS\Plugin\CMSPlugin; +use Joomla\CMS\Plugin\CMSPlugin; +use VDM\Joomla\Utilities\ArrayHelper; JLoader::register('ComponentbuilderHelper', JPATH_ADMINISTRATOR . '/components/com_componentbuilder/helpers/componentbuilder.php'); @@ -60,7 +61,7 @@ class PlgContentComponentbuilderDynamicGetHeadersTabs extends CMSPlugin // 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 - if (ComponentbuilderHelper::checkArray($editors)) + if (ArrayHelper::check($editors)) { foreach ($editors as $editor) { diff --git a/componentbuilderdynamicgetheaderstabs.xml b/componentbuilderdynamicgetheaderstabs.xml index b2fe9bb..d410567 100644 --- a/componentbuilderdynamicgetheaderstabs.xml +++ b/componentbuilderdynamicgetheaderstabs.xml @@ -1,7 +1,7 @@ PLG_CONTENT_COMPONENTBUILDERDYNAMICGETHEADERSTABS - 2nd May, 2023 + 18th October, 2023 Llewellyn van der Merwe joomla@vdm.io https://dev.vdm.io