Status: offline

eg0master

Forum User
Regular Poster
Registered: 07/21/05
Posts: 73
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:
Text 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:
Text 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']

 


Geeklog Plugins: http://plugincms.com