Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
diddipoeler committed Nov 1, 2023
1 parent a8d5ae4 commit 8e4cf6c
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions admin/models/fields/extensionradiobutton.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@
defined('_JEXEC') or die;
use Joomla\CMS\Form\Field\RadioField;

/**
* welche joomla version ?
*/
if (version_compare(substr(JVERSION, 0, 1), '4', 'eq'))
/** welche joomla version ? */
if (version_compare(JVERSION, '4.0.0', 'ge'))
{
class JSMFormField extends RadioField
{
Expand All @@ -26,7 +24,6 @@ class JSMFormField extends RadioField
else
{
include_once JPATH_LIBRARIES . '/joomla/form/fields/radio.php';

class JSMFormField extends JFormFieldRadio
{

Expand Down Expand Up @@ -66,10 +63,8 @@ protected function getLabel()
protected function getInput()
{

/**
* welche joomla version ?
*/
if (version_compare(substr(JVERSION, 0, 1), '4', 'eq'))
/** welche joomla version ? */
if (version_compare(JVERSION, '4.0.0', 'ge'))
{
// $this->class = "switcher btn-group btn-group-yesno";
$this->layout = "joomla.form.field.radio.switcher";
Expand Down

0 comments on commit 8e4cf6c

Please sign in to comment.