Add language loading to a callback.

This commit is contained in:
David Molineus
2015-01-23 20:57:52 +01:00
parent 2602b6a059
commit 83b6870538
4 changed files with 20 additions and 8 deletions

View File

@@ -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
(

View File

@@ -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');
}
)
),

View File

@@ -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

View File

@@ -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');
}
)
),