Code Duplication    Length = 10-15 lines in 2 locations

mod/wet4/start.php 2 locations

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