From 3e6180183bdc01edfa01dc4b966daa4081c29604 Mon Sep 17 00:00:00 2001 From: Friendika Date: Mon, 23 May 2011 17:18:36 -0700 Subject: improved browser language detect, set user language on login --- boot.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 1a6bf622c..48d0d79ad 100644 --- a/boot.php +++ b/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; -}} \ No newline at end of file +}} + -- cgit v1.2.3