diff --git a/main/inc/lib/internationalization.lib.php b/main/inc/lib/internationalization.lib.php index bf42684ef2..bbd50b16b9 100644 --- a/main/inc/lib/internationalization.lib.php +++ b/main/inc/lib/internationalization.lib.php @@ -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).