Welcome to Geeklog, Anonymous Tuesday, April 23 2024 @ 11:53 pm EDT

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 EDT. The time is now 11:53 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