Skip to content

Commit

Permalink
Remove old version check from tl_boxen
Browse files Browse the repository at this point in the history
  • Loading branch information
markotodic committed Jul 24, 2018
1 parent cec06df commit e98b4fe
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/Resources/contao/dca/tl_boxen.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
'subpalettes' => array
(
'addImage' => 'singleSRC,alt,imagemargin,size,imageUrl,caption,floating,fullsize',
'addEnclosure' => 'enclosure'
'addEnclosure' => 'enclosure',
),

// Fields
Expand Down Expand Up @@ -458,22 +458,6 @@
)
);

// Changes for TL 2.8 and later:
if(VERSION == 2.6 || VERSION == 2.7)
{
$GLOBALS['TL_DCA']['tl_boxen']['fields']['size']['inputType'] = 'text';
$GLOBALS['TL_DCA']['tl_boxen']['fields']['size']['eval'] = array('multiple'=>true, 'size'=>2, 'rgxp'=>'digit', 'nospace'=>true, 'tl_class'=>'w50');
$GLOBALS['TL_DCA']['tl_boxen']['fields']['size']['save_callback'] = array(array('tl_content', 'limitImageWidth'));
}
else
{
$GLOBALS['TL_DCA']['tl_boxen']['fields']['size']['inputType'] = 'imageSize';
$GLOBALS['TL_DCA']['tl_boxen']['fields']['size']['options'] = array('proportional', 'crop', 'box');
$GLOBALS['TL_DCA']['tl_boxen']['fields']['size']['reference'] = &$GLOBALS['TL_LANG']['MSC'];
$GLOBALS['TL_DCA']['tl_boxen']['fields']['size']['eval'] = array('rgxp'=>'digit', 'nospace'=>true, 'tl_class'=>'w50');
}


/**
* Class tl_boxen
*
Expand Down

0 comments on commit e98b4fe

Please sign in to comment.