diff --git a/module/dca/tl_leaflet_layer.php b/module/dca/tl_leaflet_layer.php index 0757e87..98e9b8c 100644 --- a/module/dca/tl_leaflet_layer.php +++ b/module/dca/tl_leaflet_layer.php @@ -9,8 +9,6 @@ * */ -\Controller::loadLanguageFile('leaflet'); - $GLOBALS['TL_DCA']['tl_leaflet_layer'] = array ( 'config' => array( @@ -29,6 +27,11 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = array 'alias' => 'unique', ) ), + 'onload_callback' => array( + function() { + \Controller::loadLanguageFile('leaflet'); + } + ) ), 'list' => array ( diff --git a/module/dca/tl_leaflet_map.php b/module/dca/tl_leaflet_map.php index 8330a9d..c44e478 100644 --- a/module/dca/tl_leaflet_map.php +++ b/module/dca/tl_leaflet_map.php @@ -9,8 +9,6 @@ * */ -\Controller::loadLanguageFile('leaflet'); - $GLOBALS['TL_DCA']['tl_leaflet_map'] = array ( 'config' => array( @@ -24,6 +22,11 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = array 'id' => 'primary', 'alias' => 'unique', ) + ), + 'onload_callback' => array( + function() { + \Controller::loadLanguageFile('leaflet'); + } ) ), diff --git a/module/dca/tl_leaflet_marker.php b/module/dca/tl_leaflet_marker.php index 0b406df..bcc5825 100644 --- a/module/dca/tl_leaflet_marker.php +++ b/module/dca/tl_leaflet_marker.php @@ -9,8 +9,6 @@ * */ -\Controller::loadLanguageFile('leaflet'); - $GLOBALS['TL_DCA']['tl_leaflet_marker'] = array ( 'config' => array( @@ -26,6 +24,11 @@ $GLOBALS['TL_DCA']['tl_leaflet_marker'] = array 'alias' => 'unique', ) ), + 'onload_callback' => array( + function() { + \Controller::loadLanguageFile('leaflet'); + } + ) ), 'list' => array diff --git a/module/dca/tl_leaflet_vector.php b/module/dca/tl_leaflet_vector.php index 479d5fd..8f3bcfd 100644 --- a/module/dca/tl_leaflet_vector.php +++ b/module/dca/tl_leaflet_vector.php @@ -9,8 +9,6 @@ * */ -\Controller::loadLanguageFile('leaflet'); - $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array ( 'config' => array( @@ -25,6 +23,11 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array 'pid' => 'index', 'alias' => 'unique', ) + ), + 'onload_callback' => array( + function() { + \Controller::loadLanguageFile('leaflet'); + } ) ),