aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2012-07-09 18:22:36 +0200
committerKevin Chabowski <kevin@kch42.de>2012-07-09 18:22:36 +0200
commitbc83704dd8574ca4919de53b982e477627611319 (patch)
treeefd17cc8dcf429720485f28e4f5504dfc59536ce /ratatoeskr
parent40cafe0ca0699647781e8953b413622b8e341913 (diff)
parent053999cff3b0642b54bbc3610f992700b430074e (diff)
downloadratatoeskr-cms-bc83704dd8574ca4919de53b982e477627611319.tar.gz
ratatoeskr-cms-bc83704dd8574ca4919de53b982e477627611319.tar.bz2
ratatoeskr-cms-bc83704dd8574ca4919de53b982e477627611319.zip
Merge branch 'hotfix'
Diffstat (limited to 'ratatoeskr')
-rw-r--r--ratatoeskr/backend.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/ratatoeskr/backend.php b/ratatoeskr/backend.php
index 19d3891..ae72195 100644
--- a/ratatoeskr/backend.php
+++ b/ratatoeskr/backend.php
@@ -135,6 +135,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);
}
@@ -151,9 +152,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(