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/thewire/activate.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mod/thewire') 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'); +} -- cgit v1.2.3