diff --git a/componentbuilderprivacytabs.php b/componentbuilderprivacytabs.php index ad41a90..335a55e 100644 --- a/componentbuilderprivacytabs.php +++ b/componentbuilderprivacytabs.php @@ -16,14 +16,15 @@ use Joomla\CMS\Component\ComponentHelper; 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 Joomla\CMS\Factory; use VDM\Joomla\Utilities\JsonHelper; use VDM\Joomla\Utilities\ArrayHelper; /** * Content - Componentbuilder Privacy Tabs plugin. * * @package ComponentbuilderPrivacyTabs - * @since 2.0.0 + * @since 2.0.1 */ class PlgContentComponentbuilderPrivacyTabs extends CMSPlugin { @@ -140,11 +141,11 @@ class PlgContentComponentbuilderPrivacyTabs extends CMSPlugin { $conf = Factory::getConfig(); - $options = array( + $options = [ 'defaultgroup' => $group ?: (isset($this->option) ? $this->option : Factory::getApplication()->input->get('option')), 'cachebase' => $client_id ? JPATH_ADMINISTRATOR . '/cache' : $conf->get('cache_path', JPATH_SITE . '/cache'), 'result' => true, - ); + ]; try { @@ -158,6 +159,6 @@ class PlgContentComponentbuilderPrivacyTabs extends CMSPlugin } // Trigger the onContentCleanCache event. - \JEventDispatcher::getInstance()->trigger('onContentCleanCache', $options); + Factory::getApplication()->triggerEvent('onContentCleanCache', $options); } } diff --git a/componentbuilderprivacytabs.xml b/componentbuilderprivacytabs.xml index 31799e8..d52a3b6 100644 --- a/componentbuilderprivacytabs.xml +++ b/componentbuilderprivacytabs.xml @@ -1,13 +1,13 @@ PLG_CONTENT_COMPONENTBUILDERPRIVACYTABS - 12th March, 2024 + 15th March, 2024 Llewellyn van der Merwe joomla@vdm.io https://dev.vdm.io Copyright (C) 2015 Vast Development Method. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt - 2.0.0 + 2.0.1 PLG_CONTENT_COMPONENTBUILDERPRIVACYTABS_XML_DESCRIPTION diff --git a/language/en-GB/en-GB.plg_content_componentbuilderprivacytabs.ini b/language/en-GB/en-GB.plg_content_componentbuilderprivacytabs.ini index 463715f..bc4e3b1 100644 --- a/language/en-GB/en-GB.plg_content_componentbuilderprivacytabs.ini +++ b/language/en-GB/en-GB.plg_content_componentbuilderprivacytabs.ini @@ -1,6 +1,6 @@ PLG_CONTENT_COMPONENTBUILDERPRIVACYTABS="Content - Componentbuilder Privacy Tabs" PLG_CONTENT_COMPONENTBUILDERPRIVACYTABS_DESCRIPTION="This plugin is used to link your components to the privacy suite of Joomla by adding a new privacy tab to the JCB admin views, where you can set all the required details for the integration." -PLG_CONTENT_COMPONENTBUILDERPRIVACYTABS_XML_DESCRIPTION="

Content - Componentbuilder Privacy Tabs (v.2.0.0)

This plugin is used to link your components to the privacy suite of Joomla by adding a new privacy tab to the JCB admin views, where you can set all the required details for the integration.

Created by Llewellyn van der Merwe
Development started 10th March, 2024

" +PLG_CONTENT_COMPONENTBUILDERPRIVACYTABS_XML_DESCRIPTION="

Content - Componentbuilder Privacy Tabs (v.2.0.1)

This plugin is used to link your components to the privacy suite of Joomla by adding a new privacy tab to the JCB admin views, where you can set all the required details for the integration.

Created by Llewellyn van der Merwe
Development started 10th March, 2024

" PLG_CONTENT_COMPONENTBUILDERPRIVACYTABS_GLOBAL_PRIVACY="Global Privacy" PLG_CONTENT_COMPONENTBUILDERPRIVACYTABS_PLUGIN="Plugin" PLG_CONTENT_COMPONENTBUILDERPRIVACYTABS_PRIVACY="Privacy" diff --git a/language/en-GB/en-GB.plg_content_componentbuilderprivacytabs.sys.ini b/language/en-GB/en-GB.plg_content_componentbuilderprivacytabs.sys.ini index 463715f..bc4e3b1 100644 --- a/language/en-GB/en-GB.plg_content_componentbuilderprivacytabs.sys.ini +++ b/language/en-GB/en-GB.plg_content_componentbuilderprivacytabs.sys.ini @@ -1,6 +1,6 @@ PLG_CONTENT_COMPONENTBUILDERPRIVACYTABS="Content - Componentbuilder Privacy Tabs" PLG_CONTENT_COMPONENTBUILDERPRIVACYTABS_DESCRIPTION="This plugin is used to link your components to the privacy suite of Joomla by adding a new privacy tab to the JCB admin views, where you can set all the required details for the integration." -PLG_CONTENT_COMPONENTBUILDERPRIVACYTABS_XML_DESCRIPTION="

Content - Componentbuilder Privacy Tabs (v.2.0.0)

This plugin is used to link your components to the privacy suite of Joomla by adding a new privacy tab to the JCB admin views, where you can set all the required details for the integration.

Created by Llewellyn van der Merwe
Development started 10th March, 2024

" +PLG_CONTENT_COMPONENTBUILDERPRIVACYTABS_XML_DESCRIPTION="

Content - Componentbuilder Privacy Tabs (v.2.0.1)

This plugin is used to link your components to the privacy suite of Joomla by adding a new privacy tab to the JCB admin views, where you can set all the required details for the integration.

Created by Llewellyn van der Merwe
Development started 10th March, 2024

" PLG_CONTENT_COMPONENTBUILDERPRIVACYTABS_GLOBAL_PRIVACY="Global Privacy" PLG_CONTENT_COMPONENTBUILDERPRIVACYTABS_PLUGIN="Plugin" PLG_CONTENT_COMPONENTBUILDERPRIVACYTABS_PRIVACY="Privacy"