Welcome to Geeklog Monday, September 21 2020 @ 06:27 am EDT

Geeklog Forums

Language cookie override config.php settings


Status: offline

eg0master

Forum User
Regular Poster
Registered: 21/07/05
Posts: 73
Location:Stockholm
I have been experimenting with one of my new Geeklog sites and stumbled upon a quite "special" feature. I'm not sure if it is by design, but I think the behaviour should be changed.

What happened was that the language cookie was set to english. I later changed the default language to swedish and setting:
PHP Formatted Code

$_CONF['allow_user_language'] = 0;
$_CONF['language']        = 'swedish';

 


The result was that the cookie overridden the configuration settings.
I think the desired behaviour should be:
PHP Formatted Code

If 0 == $_CONF['allow_user_language'] then
  use $_CONF['language']
else
  use cookie, db value (in gl_users) and last fall back on  $_CONF['language']

 

Just my two cents
Geeklog Plugins: http://plugincms.com
 Quote

All times are EDT. The time is now 06:27 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content