Check if the server has the module gettext , if not

return immediately in the function set_language
This commit is contained in:
Dany De Bontridder 2015-12-01 18:17:58 +01:00
parent edfa6f2b01
commit bc59ff33a9

View file

@ -670,6 +670,12 @@ function set_language()
// desactivate local check
if ( defined("LOCALE") && LOCALE==0 ) return;
if ( ! isset ($_SESSION['g_lang'])) return;
/*
* If translation is not supported by current
*/
if (! function_exists("bindtextdomain")) return;
$dir = "";
// set differently the language depending of the operating system
if (what_os() == 1)