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