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

@@ 326-336 (lines=11) @@
323
		}
324
325
		//handle results differently for new topics and topic edits
326
		if ($new_topic) {
327
			system_message(elgg_echo('discussion:topic:created'));
328
			elgg_create_river_item(array(
329
				'view' => 'river/object/groupforumtopic/create',
330
				'action_type' => 'create',
331
				'subject_guid' => elgg_get_logged_in_user_guid(),
332
				'object_guid' => $topic->guid,
333
			));
334
		} else {
335
			system_message(elgg_echo('discussion:topic:updated'));
336
		}
337
338
		return $topic->getURL();
339
}