Skip to content

Commit

Permalink
Contao 4.13 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg committed Dec 19, 2022
1 parent ddcf4d5 commit 65c3311
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions system/modules/newslist_extended/dca/tl_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*/

use Contao\CoreBundle\DataContainer\PaletteManipulator;
use Contao\CoreBundle\EventListener\ImageSizeOptionsListener;

$GLOBALS['TL_DCA']['tl_module']['palettes']['__selector__'][] = 'news_overrideRedirect';

Expand All @@ -33,6 +34,11 @@
);

$GLOBALS['TL_DCA']['tl_module']['fields']['imgSize_featured'] = $GLOBALS['TL_DCA']['tl_module']['fields']['imgSize'];

if (class_exists(ImageSizeOptionsListener::class)) {
$GLOBALS['TL_DCA']['tl_module']['fields']['imgSize_featured']['options_callback'] = ['contao.listener.image_size_options', '__invoke'];
}

$GLOBALS['TL_DCA']['tl_module']['fields']['imgSize_featured']['label'] = &$GLOBALS['TL_LANG']['tl_module']['imgSize_featured'];

if (class_exists(PaletteManipulator::class)) {
Expand Down

0 comments on commit 65c3311

Please sign in to comment.