From 2f6692dde8062690a5abba9e48e111c42e252289 Mon Sep 17 00:00:00 2001 From: aB0t Date: Wed, 18 Oct 2023 09:28:04 +0200 Subject: [PATCH] Update on v1.0.1 (beta for next version) Here's an update on the current version, which includes changes towards the next release still in beta. --- componentbuilderprivacytabs.php | 8 +++++--- componentbuilderprivacytabs.xml | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/componentbuilderprivacytabs.php b/componentbuilderprivacytabs.php index 98251c7..9a44094 100644 --- a/componentbuilderprivacytabs.php +++ b/componentbuilderprivacytabs.php @@ -15,7 +15,9 @@ defined('_JEXEC') or die('Restricted access'); use Joomla\CMS\Application\CMSApplication; use Joomla\CMS\Plugin\CMSPlugin; use Joomla\Registry\Registry; -use Joomla\CMS\Form\Form; +use Joomla\CMS\Form\Form; +use VDM\Joomla\Utilities\JsonHelper; +use VDM\Joomla\Utilities\ArrayHelper; JLoader::register('ComponentbuilderHelper', JPATH_ADMINISTRATOR . '/components/com_componentbuilder/helpers/componentbuilder.php'); @@ -91,7 +93,7 @@ class PlgContentComponentbuilderPrivacyTabs extends CMSPlugin if ('com_componentbuilder.admin_view' === $context) { // check if this is json - if (ComponentbuilderHelper::checkJson($item->params)) + if (JsonHelper::check($item->params)) { // Convert the params field to an array. $registry = new Registry; @@ -116,7 +118,7 @@ class PlgContentComponentbuilderPrivacyTabs extends CMSPlugin $this->cleanCache('com_plugins', 1); } // check if this is an array - if (ComponentbuilderHelper::checkArray($item->params)) + if (ArrayHelper::check($item->params)) { // Convert the params field to a string. $params = new JRegistry; diff --git a/componentbuilderprivacytabs.xml b/componentbuilderprivacytabs.xml index e8a109b..ffda7e3 100644 --- a/componentbuilderprivacytabs.xml +++ b/componentbuilderprivacytabs.xml @@ -1,7 +1,7 @@ PLG_CONTENT_COMPONENTBUILDERPRIVACYTABS - 2nd May, 2023 + 18th October, 2023 Llewellyn van der Merwe joomla@vdm.io https://dev.vdm.io