forked from Snck3rs/contao-leaflet-maps
Load language file in the onload callback.
This commit is contained in:
@@ -25,9 +25,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = array
|
||||
)
|
||||
),
|
||||
'onload_callback' => array(
|
||||
function () {
|
||||
\Controller::loadLanguageFile('leaflet');
|
||||
}
|
||||
['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'loadLanguageFile'],
|
||||
),
|
||||
'onsubmit_callback' => [
|
||||
['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'clearCache'],
|
||||
|
||||
Reference in New Issue
Block a user