aboutsummaryrefslogtreecommitdiff
path: root/mod/thewire/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/thewire/start.php')
-rw-r--r--mod/thewire/start.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/thewire/start.php b/mod/thewire/start.php
index 12e4b0884..0f51d052e 100644
--- a/mod/thewire/start.php
+++ b/mod/thewire/start.php
@@ -17,6 +17,10 @@ register_elgg_event_handler('init', 'system', 'thewire_init');
function thewire_init() {
global $CONFIG;
+ if (!update_subtype('object', 'thewire', 'ElggWire')) {
+ add_subtype('object', 'thewire', 'ElggWire');
+ }
+
// add a site navigation item
$item = new ElggMenuItem('thewire', elgg_echo('thewire'), 'pg/thewire/all');
elgg_register_menu_item('site', $item);