1
1
Fork 0

improved browser language detect, set user language on login

This commit is contained in:
Friendika 2011-05-23 17:18:36 -07:00
commit 3e6180183b
5 changed files with 65 additions and 19 deletions

View file

@ -4,7 +4,7 @@ set_time_limit(0);
ini_set('pcre.backtrack_limit', 250000);
define ( 'FRIENDIKA_VERSION', '2.2.988' );
define ( 'FRIENDIKA_VERSION', '2.2.989' );
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
define ( 'DB_UPDATE_VERSION', 1054 );
@ -2707,6 +2707,8 @@ function unamp($s) {
}}
if(! function_exists('lang_selector')) {
function lang_selector() {
global $lang;
@ -2748,4 +2750,5 @@ function is_site_admin() {
if(local_user() && x($a->user,'email') && x($a->config,'admin_email') && ($a->user['email'] === $a->config['admin_email']))
return true;
return false;
}}
}}