From 9544de58d149360bf656a47e8cb549e6ebfd560f Mon Sep 17 00:00:00 2001 From: aB0t Date: Sat, 27 Apr 2024 15:51:57 +0200 Subject: [PATCH] Update on v2.0.0 (changes towards the next release) Here's an update on the current version, which includes changes towards the next release still in development. --- componentbuilderprivacycompiler.php | 3 ++- componentbuilderprivacycompiler.xml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/componentbuilderprivacycompiler.php b/componentbuilderprivacycompiler.php index 8dae518..5586591 100644 --- a/componentbuilderprivacycompiler.php +++ b/componentbuilderprivacycompiler.php @@ -24,6 +24,7 @@ use VDM\Joomla\Utilities\StringHelper; use VDM\Joomla\Componentbuilder\Compiler\Utilities\Indent; use VDM\Joomla\Componentbuilder\Compiler\Utilities\Line; use VDM\Joomla\Componentbuilder\Compiler\Utilities\Placefix; +use Joomla\CMS\Component\ComponentHelper; /** * Extension - Componentbuilder Privacy Compiler plugin. * @@ -744,7 +745,7 @@ class PlgExtensionComponentbuilderPrivacyCompiler extends CMSPlugin if ($hasPermissional) { $methods .= PHP_EOL . PHP_EOL . Indent::_(3) . "//" . Line::_(__Line__, __Class__) . " Get global permissional control activation. (default is inactive)"; - $methods .= PHP_EOL . Indent::_(3) . "\$strict_permission_per_field = \JComponentHelper::getParams('com_" . Placefix::_("component") . "')->get('strict_permission_per_field', 0);"; + $methods .= PHP_EOL . Indent::_(3) . "\$strict_permission_per_field = ComponentHelper::getParams('com_" . Placefix::_("component") . "')->get('strict_permission_per_field', 0);"; $methods .= PHP_EOL . Indent::_(3) . "if(\$strict_permission_per_field)"; $methods .= PHP_EOL . Indent::_(3) . "{"; $methods .= PHP_EOL . Indent::_(4) . "//" . Line::_(__Line__, __Class__) . " remove all fields that is not permitted to be changed"; diff --git a/componentbuilderprivacycompiler.xml b/componentbuilderprivacycompiler.xml index 87848c7..47d37cf 100644 --- a/componentbuilderprivacycompiler.xml +++ b/componentbuilderprivacycompiler.xml @@ -1,7 +1,7 @@ PLG_EXTENSION_COMPONENTBUILDERPRIVACYCOMPILER - 24th April, 2024 + 27th April, 2024 Llewellyn van der Merwe joomla@vdm.io https://dev.vdm.io