diff options
Diffstat (limited to 'mod/blog/activate.php')
| -rw-r--r-- | mod/blog/activate.php | 6 | 
1 files changed, 5 insertions, 1 deletions
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'); +}  | 
