diff --git a/app/main/RTMedia.php b/app/main/RTMedia.php index eaf4d2943..f3038cc5d 100755 --- a/app/main/RTMedia.php +++ b/app/main/RTMedia.php @@ -1050,8 +1050,9 @@ public function init() { $this->set_allowed_types(); // Define allowed types. - global $rtmedia_buddypress_activity; + global $rtmedia_buddypress_activity, $rtmedia_buddypress_group_activity; $rtmedia_buddypress_activity = new RTMediaBuddyPressActivity(); + $rtmedia_buddypress_group_activity = new RTMediaBuddyPressGroupActivity(); $media = new RTMediaMedia(); $media->delete_hook(); diff --git a/app/main/controllers/group/RTMediaBuddyPressGroupActivity.php b/app/main/controllers/group/RTMediaBuddyPressGroupActivity.php new file mode 100644 index 000000000..dc467a74e --- /dev/null +++ b/app/main/controllers/group/RTMediaBuddyPressGroupActivity.php @@ -0,0 +1,43 @@ +