diff options
Diffstat (limited to 'auto_prepend.php')
-rw-r--r-- | auto_prepend.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/auto_prepend.php b/auto_prepend.php index e9e6990..b71acb7 100644 --- a/auto_prepend.php +++ b/auto_prepend.php @@ -112,6 +112,16 @@ function T_lang() } /** + * Get active language + * @return default language of browser + */ +function T_defaultlang() +{ + it_text::init(); + return $GLOBALS['it_text']->get_defaultlanguage(); +} + +/** * Get available languages * @return available languages as langcode => langname */ |