aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/sessions.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-06-17 17:22:46 -0700
committerCash Costello <cash.costello@gmail.com>2012-06-17 17:22:46 -0700
commit9f5634b5eef06a36f39fa3003ecaa969ef86df75 (patch)
tree846371c86f5be0847925a7909b1a8f051473b63c /engine/lib/sessions.php
parent242ea5fa2b1ac775b74cf118a8b81d79e531104a (diff)
parent460b47b7cedb7b9af16d8d62e5b7b8b9eadff508 (diff)
downloadelgg-9f5634b5eef06a36f39fa3003ecaa969ef86df75.tar.gz
elgg-9f5634b5eef06a36f39fa3003ecaa969ef86df75.tar.bz2
Merge pull request #274 from cash/language_caching
Fixes #4538 Language caching rewrite
Diffstat (limited to 'engine/lib/sessions.php')
-rw-r--r--engine/lib/sessions.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php
index 419d36707..72ca0a1c2 100644
--- a/engine/lib/sessions.php
+++ b/engine/lib/sessions.php
@@ -376,14 +376,10 @@ function logout() {
*
* @uses $_SESSION
*
- * @param string $event Event name
- * @param string $object_type Object type
- * @param mixed $object Object
- *
* @return bool
* @access private
*/
-function _elgg_session_boot($event, $object_type, $object) {
+function _elgg_session_boot() {
global $DB_PREFIX, $CONFIG;
// Use database for sessions
@@ -464,9 +460,6 @@ function _elgg_session_boot($event, $object_type, $object) {
return false;
}
- // Since we have loaded a new user, this user may have different language preferences
- register_translations(dirname(dirname(dirname(__FILE__))) . "/languages/");
-
return true;
}
@@ -658,5 +651,3 @@ function _elgg_session_gc($maxlifetime) {
return true;
}
-
-elgg_register_event_handler('boot', 'system', '_elgg_session_boot', 2);