Skip to content

Commit

Permalink
Fixed compatibility bug with Contao 3.3 and below
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Apr 10, 2015
1 parent 2d84467 commit 02327fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dca/tl_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@
'label' => &$GLOBALS['TL_LANG']['tl_module']['imgSize'],
'exclude' => true,
'inputType' => 'imageSize',
'options' => System::getImageSizes(),
'options' => version_compare(VERSION, '3.4', '<') ? $GLOBALS['TL_CROP'] : System::getImageSizes(),
'reference' => &$GLOBALS['TL_LANG']['MSC'],
'eval' => array(
'rgxp' => 'natural',
Expand Down
2 changes: 1 addition & 1 deletion dca/tl_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@
'label' => &$GLOBALS['TL_LANG']['tl_module']['imgSize'],
'exclude' => true,
'inputType' => 'imageSize',
'options' => System::getImageSizes(),
'options' => version_compare(VERSION, '3.4', '<') ? $GLOBALS['TL_CROP'] : System::getImageSizes(),
'reference' => &$GLOBALS['TL_LANG']['MSC'],
'eval' => array(
'rgxp' => 'natural',
Expand Down

0 comments on commit 02327fe

Please sign in to comment.