52
0
This commit is contained in:
Llewellyn van der Merwe 2022-01-10 16:11:34 +02:00
parent f6482e15ce
commit dc67abb4b0
Signed by: Llewellyn
GPG Key ID: EFC0C720A240551C
2 changed files with 8 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<extension type="plugin" version="4" group="content" method="upgrade">
<name>PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS</name>
<creationDate>7th January, 2022</creationDate>
<creationDate>10th January, 2022</creationDate>
<author>Llewellyn van der Merwe</author>
<authorEmail>joomla@vdm.io</authorEmail>
<authorUrl>https://dev.vdm.io</authorUrl>

View File

@ -61,8 +61,13 @@ class plgContentComponentbuilderFieldOrderingTabsInstallerScript
{
// get the version
$jcbVersion = explode('.', $manifest->version);
// check that we have JCB 3 or higher installed
if (count($jcbVersion) == 3 && $jcbVersion[0] >= 3)
// check that we have JCB 3.0.0 or higher installed
if (count($jcbVersion) == 3 && $jcbVersion[0] >= 3 &&
(
($jcbVersion[0] == 3 && $jcbVersion[1] == 0 && $jcbVersion[2] >= 0) ||
($jcbVersion[0] == 3 && $jcbVersion[1] > 0) ||
$jcbVersion[0] > 3)
)
{
$blockInstall = false;
}