From bc59ff33a96de060f5e283f822bb5624c5b8b2a3 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Tue, 1 Dec 2015 18:17:58 +0100 Subject: [PATCH] Check if the server has the module gettext , if not return immediately in the function set_language --- include/lib/ac_common.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/lib/ac_common.php b/include/lib/ac_common.php index 9c17bc4c7..faf3f99d9 100644 --- a/include/lib/ac_common.php +++ b/include/lib/ac_common.php @@ -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)