diff options
author | Kevin Chabowski <kevin@kch42.de> | 2012-07-09 18:20:46 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2013-10-03 22:22:06 +0200 |
commit | b15a2a020981a26d6eb77c2af626ef7df4da8bbc (patch) | |
tree | 9cb851b3e88c5b98accb34e8591c75dd27b6fd3b /ratatoeskr/backend.php | |
parent | 1dda842bb80414c6d373e7fb41c63d4d31e035b6 (diff) | |
download | ratatoeskr-cms-b15a2a020981a26d6eb77c2af626ef7df4da8bbc.tar.gz ratatoeskr-cms-b15a2a020981a26d6eb77c2af626ef7df4da8bbc.tar.bz2 ratatoeskr-cms-b15a2a020981a26d6eb77c2af626ef7df4da8bbc.zip |
Fixed language loading bugs and removed debug code.
* User language was not loaded directly after logging in.
* Default language was not loaded directly after logging out.
* Removed stupid debug code. Was there since 2011-Oct-5. Unnoticed.
*sigh*
Diffstat (limited to 'ratatoeskr/backend.php')
-rw-r--r-- | ratatoeskr/backend.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ratatoeskr/backend.php b/ratatoeskr/backend.php index be03fc7..2db82d7 100644 --- a/ratatoeskr/backend.php +++ b/ratatoeskr/backend.php @@ -118,6 +118,7 @@ $backend_subactions = url_action_subactions(array( /* Login successful. */ $_SESSION["ratatoeskr_uid"] = $user->get_id(); $_SESSION["ratatoeskr_pwhash"] = $user->pwhash; + load_language($user->language); $data["user"] = $user; $ste->vars["user"] = array("id" => $user->get_id(), "name" => $user->username, "lang" => $user->language); } @@ -134,9 +135,9 @@ $backend_subactions = url_action_subactions(array( }), "logout" => url_action_simple(function($data) { - echo "foo"; unset($_SESSION["ratatoeskr_uid"]); unset($_SESSION["ratatoeskr_pwhash"]); + load_language(); throw new Redirect(array("login")); }), "content" => url_action_subactions(array( |