Code Duplication    Length = 10-15 lines in 2 locations

mod/wet4/start.php 2 locations

@@ 567-576 (lines=10) @@
564
		echo '<div> What that mean?</div>';
565
	}
566
567
	if (elgg_is_logged_in() && elgg_get_config('allow_registration')) {
568
		$params = array(
569
				'name' => 'invite',
570
				'text' => elgg_echo('friends:invite'),
571
				'href' => "invite/". $user->username,
572
				'contexts' => array('friends'),
573
				'priority' => 300,
574
			);
575
		elgg_register_menu_item('page', $params);
576
	}
577
578
579
	//new folder button for files
@@ 581-595 (lines=15) @@
578
579
	//new folder button for files
580
581
	if (elgg_is_logged_in()) {
582
		$user = elgg_get_logged_in_user_entity();
583
		if ($user->canEdit()) {
584
			$params = array(
585
				'name' => 'new_folder',
586
				'text' => elgg_echo("file_tools:new:title"),
587
				'href' => "#",
588
				"id" => "file_tools_list_new_folder_toggle",
589
				'item_class' => 'mrgn-lft-sm',
590
				'context' => 'file',
591
			);
592
			elgg_register_menu_item('title2', $params);
593
		}
594
	}
595
}
596
597
598