52
0

Update on v2.0.3 (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:
Robot 2023-10-18 09:28:04 +02:00
parent facd1caf68
commit b11d2e9703
Signed by: Robot
GPG Key ID: 14DECD44E7E1BB95
2 changed files with 4 additions and 3 deletions

View File

@ -13,7 +13,8 @@
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\Form\Form; use Joomla\CMS\Form\Form;
use Joomla\CMS\Plugin\CMSPlugin; use Joomla\CMS\Plugin\CMSPlugin;
use VDM\Joomla\Utilities\ArrayHelper;
JLoader::register('ComponentbuilderHelper', JPATH_ADMINISTRATOR . '/components/com_componentbuilder/helpers/componentbuilder.php'); JLoader::register('ComponentbuilderHelper', JPATH_ADMINISTRATOR . '/components/com_componentbuilder/helpers/componentbuilder.php');
@ -60,7 +61,7 @@ class PlgContentComponentbuilderAdminHeadersTabs extends CMSPlugin
// set the field editor value (with none as fallback) // set the field editor value (with none as fallback)
$editors = $form->getXml()->xpath('descendant::fields[@name="admin_view_headers"]//field[@type="editor"]'); $editors = $form->getXml()->xpath('descendant::fields[@name="admin_view_headers"]//field[@type="editor"]');
// check if we found any // check if we found any
if (ComponentbuilderHelper::checkArray($editors)) if (ArrayHelper::check($editors))
{ {
foreach ($editors as $editor) foreach ($editors as $editor)
{ {

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<extension type="plugin" version="4" group="content" method="upgrade"> <extension type="plugin" version="4" group="content" method="upgrade">
<name>PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS</name> <name>PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS</name>
<creationDate>2nd May, 2023</creationDate> <creationDate>18th October, 2023</creationDate>
<author>Llewellyn van der Merwe</author> <author>Llewellyn van der Merwe</author>
<authorEmail>joomla@vdm.io</authorEmail> <authorEmail>joomla@vdm.io</authorEmail>
<authorUrl>https://dev.vdm.io</authorUrl> <authorUrl>https://dev.vdm.io</authorUrl>