1
0

EXPERIMENTAL: Shuffled language, required for future authentication themes like OpenID. By Rob Richards

This commit is contained in:
Garvin Hicking
2007-02-23 13:57:39 +00:00
parent 5067eaf054
commit ff150a6f4d
3 changed files with 71 additions and 10 deletions

View File

@ -251,6 +251,7 @@ if (!serendipity_db_connect()) {
*/
serendipity_load_configuration();
$serendipity['lang'] = serendipity_getSessionLanguage();
/*
* If a user is logged in, fetch his preferences. He possibly wants to have a different language
@ -281,10 +282,9 @@ if (IS_installed === true) {
if (isset($_SESSION['serendipityAuthorid'])) {
serendipity_load_configuration($_SESSION['serendipityAuthorid']);
$serendipity['lang'] = serendipity_getPostAuthSessionLanguage();
}
$serendipity['lang'] = serendipity_getSessionLanguage(); // @see function declaration for todo
// Try to fix some path settings. It seems common users have this setting wrong
// when s9y is installed into the root directory, especially 0.7.1 upgrade users.
if (empty($serendipity['serendipityHTTPPath'])) {