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.
This commit is contained in:
parent
f3290d74a6
commit
2f6692dde8
@ -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;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<extension type="plugin" version="4" group="content" method="upgrade">
|
||||
<name>PLG_CONTENT_COMPONENTBUILDERPRIVACYTABS</name>
|
||||
<creationDate>2nd May, 2023</creationDate>
|
||||
<creationDate>18th October, 2023</creationDate>
|
||||
<author>Llewellyn van der Merwe</author>
|
||||
<authorEmail>joomla@vdm.io</authorEmail>
|
||||
<authorUrl>https://dev.vdm.io</authorUrl>
|
||||
|
Loading…
Reference in New Issue
Block a user