From 75b31ddfaed2c183ec3ccf903c468d2d7f485e20 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 6 Nov 2011 16:44:05 -0500 Subject: Fixes #4068 not forcing update on adds when the subtype exists Refs #4058 --- mod/blog/activate.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mod/blog') diff --git a/mod/blog/activate.php b/mod/blog/activate.php index 5f67ffbed..a90525291 100644 --- a/mod/blog/activate.php +++ b/mod/blog/activate.php @@ -3,4 +3,8 @@ * Register the ElggBlog class for the object/blog subtype */ -add_subtype('object', 'blog', 'ElggBlog'); +if (get_subtype_id('object', 'blog')) { + update_subtype('object', 'blog', 'ElggBlog'); +} else { + add_subtype('object', 'blog', 'ElggBlog'); +} -- cgit v1.2.3