diff options
author | Christian Schneider | 2011-06-15 13:40:09 +0000 |
---|---|---|
committer | Christian Schneider | 2011-06-15 13:40:09 +0000 |
commit | df92d093d9a3f6ca9da961ecfc1ad01f6d53e5f7 (patch) | |
tree | 6bf14af47a8ed1e34c5faa61a70f23bbd4d45a78 /auto_prepend.php | |
parent | a3fd902e4ecc68a09b5324bba3ed43c9501156ed (diff) | |
download | itools-df92d093d9a3f6ca9da961ecfc1ad01f6d53e5f7.tar.gz itools-df92d093d9a3f6ca9da961ecfc1ad01f6d53e5f7.tar.bz2 itools-df92d093d9a3f6ca9da961ecfc1ad01f6d53e5f7.zip |
Added T_defaultlang() to avoid direct access to global it_text->defaultlanguage
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 */ |