simple fix of a sorta-bug. Did a check for function bindtextdomain().
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 11 Aug 2000 10:01:45 +0000 (10:01 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 11 Aug 2000 10:01:45 +0000 (10:01 +0000)
It was reported on bugs list that someone got "function doesn't exist" error.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@703 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_general.php

index 67fe8b7..6e1b80a 100755 (executable)
                   $squirrelmail_language = substr($HTTP_ACCEPT_LANGUAGE, 0, 2);
                }
                
-               if (isset($squirrelmail_language)) {
+               if (isset($squirrelmail_language) && function_exists("bindtextdomain")) {
                   if ($squirrelmail_language != "en" && $squirrelmail_language != "") {
                      putenv("LC_ALL=".$squirrelmail_language);
                      bindtextdomain("squirrelmail", "../locale/");