@@ -138,11 +138,9 @@ function get_lang($variable, $reserved = null, $language = null)
}
return $translated;*/
- $language_interface = api_get_language_interface();
- /*$helo = false;
- if ($variable == 'LostPassword') {
- $helo = true;
- }*/
+ global $app;
+ $language_interface = isset($app['language_interface']) ? $app['language_interface'] : api_get_language_interface();
+
global
// For serving some old hacks:
// By manipulating this global variable the translation may be done in different languages too (not the elegant way).