diff options
Diffstat (limited to 'mod/thewire/activate.php')
-rw-r--r-- | mod/thewire/activate.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/thewire/activate.php b/mod/thewire/activate.php index 1db83f7be..1cc64ceb1 100644 --- a/mod/thewire/activate.php +++ b/mod/thewire/activate.php @@ -3,4 +3,8 @@ * Register the ElggWire class for the object/thewire subtype */ -add_subtype('object', 'thewire', 'ElggWire'); +if (get_subtype_id('object', 'thewire')) { + update_subtype('object', 'thewire', 'ElggWire'); +} else { + add_subtype('object', 'thewire', 'ElggWire'); +} |