Code Duplication    Length = 10-15 lines in 2 locations

mod/wet4/start.php 2 locations

@@ 604-613 (lines=10) @@
601
		echo '<div> What that mean?</div>';
602
	}
603
604
	if (elgg_is_logged_in() && elgg_get_config('allow_registration')) {
605
		$params = array(
606
				'name' => 'invite',
607
				'text' => elgg_echo('friends:invite'),
608
				'href' => "invite/". $user->username,
609
				'contexts' => array('friends'),
610
				'priority' => 300,
611
			);
612
		elgg_register_menu_item('page', $params);
613
	}
614
615
616
	//new folder button for files
@@ 618-632 (lines=15) @@
615
616
	//new folder button for files
617
618
	if (elgg_is_logged_in()) {
619
		$user = elgg_get_logged_in_user_entity();
620
		if ($user->canEdit()) {
621
			$params = array(
622
				'name' => 'new_folder',
623
				'text' => elgg_echo("file_tools:new:title"),
624
				'href' => "#",
625
				"id" => "file_tools_list_new_folder_toggle",
626
				'item_class' => 'mrgn-lft-sm',
627
				'context' => 'file',
628
			);
629
			elgg_register_menu_item('title2', $params);
630
		}
631
	}
632
}
633
634
635