Welcome to Geeklog, Anonymous Monday, December 30 2024 @ 12:00 pm EST

Geeklog Forums

Language cookie override config.php settings


Status: offline

eg0master

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

 

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

All times are EST. The time is now 12:00 pm.

  • 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