Add language loading to a callback.

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

No files matched your search

+5 -2
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');
}
)
),