Is there a way to get the default language set in Admin -> General Configuration in an add-on(module, extension, plugin)?
1 Answer
It's a config item, so you can get it using the Config object, thus:
ee()->config->item('deft_lang');
-
Thanks for the quick response. I originally though it was
ee()->config->item('language')
but I was wrong. Feb 12, 2014 at 7:59