From 9afcd502258480baee1a1f539a94b9404e45bdf8 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Mon, 27 Oct 2008 23:10:53 +0000 Subject: [PATCH] Catch empty text domain git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13308 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- include/languages.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/languages.php b/include/languages.php index 8847f617..100a191b 100644 --- a/include/languages.php +++ b/include/languages.php @@ -52,6 +52,10 @@ function sq_change_text_domain($domain_name, $directory='') { global $gettext_domain; $return_value = $gettext_domain; + // empty domain defaults to "squirrelmail" + // + if (empty($domain_name)) $domain_name = 'squirrelmail'; + // only need to call bindtextdomain() once // if (in_array($domain_name, $domains_already_seen)) { -- 2.25.1