improved browser language detect, set user language on login
This commit is contained in:
parent
3ea145fae7
commit
3e6180183b
5 changed files with 65 additions and 19 deletions
7
boot.php
7
boot.php
|
@ -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;
|
||||
}}
|
||||
}}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue