Page 1 of 1

[login] Russian lang selected when browser's lang not found

Posted: Thu 16. Jun 2005, 19:10
by ono
Hi,

I'm Pole and since "polish" language is not prosent phpwcms should use by default english at login form because "pl" reported by my browser is not found by phpwcms, however it just selects first from the list which is "russian".

Here's a fix for that (version 1.2.3):

Code: Select all

--- D:\Work\Digitech\phpwcms\phpwcms_1.2.3-DEV\login.php	Mon Mar 28 08:35:50 2005
+++ D:\Work\Digitech\phpwcms\phpwcms_1.2.3-mod\login.php	Wed May 25 17:45:58 2005
@@ -57,6 +57,7 @@
 	$_SESSION["wcs_user_lang_custom"] = 1;
 } else {
 	$lang_file_include = 'include/inc_lang/backend/en/lang.inc.php';
+ 	$_SESSION["wcs_user_lang"] = "en";
 	$_SESSION["wcs_user_lang_custom"] = 0;
 }
 require_once ($lang_file_include);
Regards,

Posted: Fri 2. Sep 2005, 17:53
by ono
@Oliver

Any chance to have this patch in new releases ???

Regards,

Posted: Sat 3. Sep 2005, 00:46
by Oliver Georgi
implemented - thanks.

Oliver