From 25c078d36df8088bf09609e48613abe256fbf239 Mon Sep 17 00:00:00 2001 From: lkehresman Date: Fri, 11 Aug 2000 10:01:45 +0000 Subject: [PATCH] simple fix of a sorta-bug. Did a check for function bindtextdomain(). 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/imap_general.php b/functions/imap_general.php index 67fe8b7f..6e1b80a4 100755 --- a/functions/imap_general.php +++ b/functions/imap_general.php @@ -114,7 +114,7 @@ $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/"); -- 2.25.1