Files
scummvm-web/include
Adrian Astley 5c27ce3e0e WEB: Fix language switching
As mentioned in f3c2203e2f,
the language switching was always 1 behind. As in, the
language would be the last language you selected.

The first problem is that some of the smarty config variables
were being set after the call to _smarty->config_load(). Since
the smarty instance is cached, it was using the last set of variables.

I don't know why the production web site isn't throwing errors. My
personal set up wouldn't load until I could set _smarty->compile_dir
the first time. Perhaps the language update was done on the fly, so
smarty was still cached.

The next potential problem is persistence with $_SESSION.
The session is never initialized with session_start(). However,
the production php.ini may have session auto start enabled.
2016-01-21 12:43:43 -06:00
..
2015-11-01 19:00:24 +01:00
2016-01-16 23:43:58 +01:00
2016-01-21 12:43:43 -06:00