Code Duplication    Length = 11-11 lines in 2 locations

mod/groups/actions/discussion/save.php 1 location

@@ 76-86 (lines=11) @@
73
74
75
// handle results differently for new topics and topic edits
76
if ($new_topic) {
77
	system_message(elgg_echo('discussion:topic:created'));
78
	elgg_create_river_item(array(
79
		'view' => 'river/object/groupforumtopic/create',
80
		'action_type' => 'create',
81
		'subject_guid' => elgg_get_logged_in_user_guid(),
82
		'object_guid' => $topic->guid,
83
	));
84
} else {
85
	system_message(elgg_echo('discussion:topic:updated'));
86
}
87
88
forward($topic->getURL());
89

mod/gc_mobile_api/models/discussion.php 1 location

@@ 317-327 (lines=11) @@
314
		}
315
316
		//handle results differently for new topics and topic edits
317
		if ($new_topic) {
318
			system_message(elgg_echo('discussion:topic:created'));
319
			elgg_create_river_item(array(
320
				'view' => 'river/object/groupforumtopic/create',
321
				'action_type' => 'create',
322
				'subject_guid' => elgg_get_logged_in_user_guid(),
323
				'object_guid' => $topic->guid,
324
			));
325
		} else {
326
			system_message(elgg_echo('discussion:topic:updated'));
327
		}
328
329
		return $topic->getURL();
330
}