Note that $LANG does not contain the current language viewed. It
contains the user's preferred language. There is no bug here, and your
changes are not fixing anything, but would lead to a very wrong
misbehaviour of the language chooser.
preferred lang: nl
/echo --> $LANG: nl
/nl/echo --> $LANG: nl
/en/echo --> $LANG: en
I've changed the preferred language in my.php...
preferred lang: en
/echo --> $LANG: en
/nl/echo --> $LANG: nl
/en/echo --> $LANG: en
I've checked all my cookie settings, everything.
did a print_r() in langchooser.inc and the same result as above.
maybe other people can test this... it could be that my box does wrong things..
Sorry about those changes.. but they do work at my mirror.
Hm. Yes, you are right. $LANG really contains the current selected language, and not the user's preferred language. I was wrong. $LANG was only used for selection and not for those purposes where you tried to introduce it.
Goba