Code Duplication    Length = 10-15 lines in 2 locations

mod/wet4/start.php 2 locations

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