From 63c4aabc26553254a8186d9e27df865bba0cbb26 Mon Sep 17 00:00:00 2001 From: brettp Date: Thu, 9 Jun 2011 01:40:52 +0000 Subject: Refs #3510, #3316. Merged register_metadata_as_independent() fix in profile. git-svn-id: http://code.elgg.org/elgg/trunk@9145 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/start.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'mod/profile') diff --git a/mod/profile/start.php b/mod/profile/start.php index d91b66371..2c38fdd2d 100644 --- a/mod/profile/start.php +++ b/mod/profile/start.php @@ -7,6 +7,10 @@ elgg_register_event_handler('init', 'system', 'profile_init', 1); +// Metadata on users needs to be independent +// outside of init so it happens earlier in boot. See #3316 +register_metadata_as_independent('user'); + /** * Profile init function */ @@ -16,8 +20,6 @@ function profile_init() { // will dictate the URL for all ElggUser objects elgg_register_entity_url_handler('user', 'all', 'profile_url'); - // Metadata on users needs to be independent - register_metadata_as_independent('user'); elgg_register_simplecache_view('icon/user/default/tiny'); elgg_register_simplecache_view('icon/user/default/topbar'); @@ -127,4 +129,4 @@ function profile_default_widgets_hook($hook, $type, $return, $params) { ); return $return; -} \ No newline at end of file +} -- cgit v1.2.3