diff --git a/dca/tl_content.php b/dca/tl_content.php index c3171db..802045c 100644 --- a/dca/tl_content.php +++ b/dca/tl_content.php @@ -393,7 +393,9 @@ 'helpwizard' => true, 'tl_class' => 'w50', ), - 'sql' => "varchar(64) NOT NULL default 'a:3:{i:0;s:2:\"50\";i:1;s:2:\"50\";i:2;s:4:\"crop\";}'", + 'sql' => version_compare(VERSION, '4', '<') + ? "varchar(64) NOT NULL default 'a:3:{i:0;s:2:\"50\";i:1;s:2:\"50\";i:2;s:4:\"crop\";}'" + : "varchar(64) NOT NULL default 'a:3:{i:0;s:2:\\\"50\\\";i:1;s:2:\\\"50\\\";i:2;s:4:\\\"crop\\\";}'", ); $GLOBALS['TL_DCA']['tl_content']['fields']['rsts_thumbs_slideMaxCount'] = array( 'label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_slideMaxCount'], diff --git a/dca/tl_module.php b/dca/tl_module.php index 35e7142..7ae65f3 100644 --- a/dca/tl_module.php +++ b/dca/tl_module.php @@ -390,7 +390,9 @@ 'helpwizard' => true, 'tl_class' => 'w50', ), - 'sql' => "varchar(64) NOT NULL default 'a:3:{i:0;s:2:\"50\";i:1;s:2:\"50\";i:2;s:4:\"crop\";}'", + 'sql' => version_compare(VERSION, '4', '<') + ? "varchar(64) NOT NULL default 'a:3:{i:0;s:2:\"50\";i:1;s:2:\"50\";i:2;s:4:\"crop\";}'" + : "varchar(64) NOT NULL default 'a:3:{i:0;s:2:\\\"50\\\";i:1;s:2:\\\"50\\\";i:2;s:4:\\\"crop\\\";}'", ); $GLOBALS['TL_DCA']['tl_module']['fields']['rsts_thumbs_slideMaxCount'] = array( 'label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_slideMaxCount'],