Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization
In directory usw-pr-cvs1:/tmp/cvs-serv21189/chat/localization
Modified Files:
tutorial.lib.php3 languages.lib.php3 admin.lib.php3
Log Message:
Fix the case when 'HTTP_USER_AGENT' and 'HTTP_ACCEPTED_LANGUAGES' are empty
Index: tutorial.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/tutorial.lib.php3,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** tutorial.lib.php3 2001/04/16 12:24:29 1.3
--- tutorial.lib.php3 2001/04/18 22:45:45 1.4
***************
*** 115,119 ****
// Checks for an existing translation corresponding to the
// 'HTTP_ACCEPT_LANGUAGE' variable sent by the browser
! else if (getenv('HTTP_ACCEPT_LANGUAGE') != '')
{
$accepted = explode(',', getenv('HTTP_ACCEPT_LANGUAGE'));
--- 115,119 ----
// Checks for an existing translation corresponding to the
// 'HTTP_ACCEPT_LANGUAGE' variable sent by the browser
! else if (!empty($HTTP_ACCEPT_LANGUAGE))
{
$accepted = explode(',', getenv('HTTP_ACCEPT_LANGUAGE'));
***************
*** 123,127 ****
// Checks for an existing translation corresponding to the
// 'HTTP_USER_AGENT' variable sent by the browser
! else if (getenv('HTTP_USER_AGENT') != '')
{
pmcTutorialDetect(getenv('HTTP_USER_AGENT'), 2);
--- 123,127 ----
// Checks for an existing translation corresponding to the
// 'HTTP_USER_AGENT' variable sent by the browser
! else if (!empty($HTTP_USER_AGENT))
{
pmcTutorialDetect(getenv('HTTP_USER_AGENT'), 2);
Index: languages.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/languages.lib.php3,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** languages.lib.php3 2001/04/16 12:24:29 1.3
--- languages.lib.php3 2001/04/18 22:45:45 1.4
***************
*** 127,131 ****
// Checks for an existing translation corresponding to the
// 'HTTP_ACCEPT_LANGUAGE' variable sent by the browser
! else if ($HTTP_ACCEPT_LANGUAGE != '')
{
$accepted = explode(',', $HTTP_ACCEPT_LANGUAGE);
--- 127,131 ----
// Checks for an existing translation corresponding to the
// 'HTTP_ACCEPT_LANGUAGE' variable sent by the browser
! else if (!empty($HTTP_ACCEPT_LANGUAGE))
{
$accepted = explode(',', $HTTP_ACCEPT_LANGUAGE);
***************
*** 135,139 ****
// Checks for an existing translation corresponding to the
// 'HTTP_USER_AGENT' variable sent by the browser
! else if ($HTTP_USER_AGENT != '')
{
pmcLangDetect($HTTP_USER_AGENT, 2);
--- 135,139 ----
// Checks for an existing translation corresponding to the
// 'HTTP_USER_AGENT' variable sent by the browser
! else if (!empty($HTTP_USER_AGENT))
{
pmcLangDetect($HTTP_USER_AGENT, 2);
Index: admin.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/admin.lib.php3,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** admin.lib.php3 2001/04/16 12:24:29 1.3
--- admin.lib.php3 2001/04/18 22:45:45 1.4
***************
*** 107,111 ****
// Checks for an existing translation corresponding to the
// 'HTTP_ACCEPT_LANGUAGE' variable sent by the browser
! else if ($HTTP_ACCEPT_LANGUAGE != '')
{
$accepted = explode(',', $HTTP_ACCEPT_LANGUAGE);
--- 107,111 ----
// Checks for an existing translation corresponding to the
// 'HTTP_ACCEPT_LANGUAGE' variable sent by the browser
! else if (!empty($HTTP_ACCEPT_LANGUAGE))
{
$accepted = explode(',', $HTTP_ACCEPT_LANGUAGE);
***************
*** 115,119 ****
// Checks for an existing translation corresponding to the
// 'HTTP_USER_AGENT' variable sent by the browser
! else if ($HTTP_USER_AGENT != '')
{
pmcAdminDetect($HTTP_USER_AGENT, 2);
--- 115,119 ----
// Checks for an existing translation corresponding to the
// 'HTTP_USER_AGENT' variable sent by the browser
! else if (!empty($HTTP_USER_AGENT))
{
pmcAdminDetect($HTTP_USER_AGENT, 2);
|