From: pdontthink Date: Mon, 27 Oct 2008 23:10:53 +0000 (+0000) Subject: Catch empty text domain X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9afcd502258480baee1a1f539a94b9404e45bdf8;p=squirrelmail.git Catch empty text domain git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13308 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- 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)) {