Code Duplication    Length = 10-15 lines in 2 locations

mod/wet4/start.php 2 locations

@@ 624-633 (lines=10) @@
621
		echo '<div> What that mean?</div>';
622
	}
623
624
	if (elgg_is_logged_in() && elgg_get_config('allow_registration')) {
625
		$params = array(
626
				'name' => 'invite',
627
				'text' => elgg_echo('friends:invite'),
628
				'href' => "invite/". $user->username,
629
				'contexts' => array('friends'),
630
				'priority' => 300,
631
			);
632
		elgg_register_menu_item('page', $params);
633
	}
634
635
636
	//new folder button for files
@@ 638-652 (lines=15) @@
635
636
	//new folder button for files
637
638
	if (elgg_is_logged_in()) {
639
		$user = elgg_get_logged_in_user_entity();
640
		if ($user->canEdit()) {
641
			$params = array(
642
				'name' => 'new_folder',
643
				'text' => elgg_echo("file_tools:new:title"),
644
				'href' => "#",
645
				"id" => "file_tools_list_new_folder_toggle",
646
				'item_class' => 'mrgn-lft-sm',
647
				'context' => 'file',
648
			);
649
			elgg_register_menu_item('title2', $params);
650
		}
651
	}
652
}
653
654
655