aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-06-09 01:40:52 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-06-09 01:40:52 +0000
commit63c4aabc26553254a8186d9e27df865bba0cbb26 (patch)
tree05c35bbee97960741168239424b9051f2f84efeb
parent740d6a543605e6179b77c996aae3030b96069c5e (diff)
downloadelgg-63c4aabc26553254a8186d9e27df865bba0cbb26.tar.gz
elgg-63c4aabc26553254a8186d9e27df865bba0cbb26.tar.bz2
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
-rw-r--r--mod/profile/start.php8
1 files changed, 5 insertions, 3 deletions
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
+}