From f2dc5e5ca0cad4efb7d515e781d00891da65ba4a Mon Sep 17 00:00:00 2001 From: aB0t Date: Sat, 27 Apr 2024 15:45:07 +0200 Subject: [PATCH] Update on v1.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. --- componentbuilderprivacytabs.php | 5 +++-- componentbuilderprivacytabs.xml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/componentbuilderprivacytabs.php b/componentbuilderprivacytabs.php index d732359..e651bfc 100644 --- a/componentbuilderprivacytabs.php +++ b/componentbuilderprivacytabs.php @@ -18,7 +18,8 @@ use Joomla\CMS\Plugin\CMSPlugin; use Joomla\Registry\Registry; use Joomla\CMS\Form\Form; use VDM\Joomla\Utilities\JsonHelper; -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'); @@ -69,7 +70,7 @@ class PlgContentComponentbuilderPrivacyTabs extends CMSPlugin //$form->setFieldAttribute('note_select_privacy_plugin', 'showon', 'activate:1', 'params.privacy'); } // 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) $form->setFieldAttribute('custom_link', 'editor', $global_editor . '|none', 'params.privacy'); } diff --git a/componentbuilderprivacytabs.xml b/componentbuilderprivacytabs.xml index 5520689..48ee5d9 100644 --- a/componentbuilderprivacytabs.xml +++ b/componentbuilderprivacytabs.xml @@ -1,7 +1,7 @@ PLG_CONTENT_COMPONENTBUILDERPRIVACYTABS - 24th April, 2024 + 27th April, 2024 Llewellyn van der Merwe joomla@vdm.io https://dev.vdm.io