From 02327fe86dfcb49c25f94809712f11cf1ee971e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Auswo=CC=88ger?= Date: Fri, 10 Apr 2015 19:50:45 +0200 Subject: [PATCH] Fixed compatibility bug with Contao 3.3 and below --- dca/tl_content.php | 2 +- dca/tl_module.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dca/tl_content.php b/dca/tl_content.php index c113c26..c3171db 100644 --- a/dca/tl_content.php +++ b/dca/tl_content.php @@ -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', diff --git a/dca/tl_module.php b/dca/tl_module.php index b617a02..35e7142 100644 --- a/dca/tl_module.php +++ b/dca/tl_module.php @@ -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',