Code Duplication    Length = 8-9 lines in 2 locations

mod/wet4/start.php 2 locations

@@ 428-435 (lines=8) @@
425
			'link_class' => 'elgg-topbar-dropdown',
426
		));
427
428
		if (elgg_is_active_plugin('dashboard')) {
429
			$item = elgg_unregister_menu_item('topbar', 'dashboard');
430
			if ($item) {
431
				$item->setText(elgg_echo('dashboard'));
432
				$item->setSection('default');
433
				elgg_register_menu_item('site', $item);
434
			}
435
		}
436
437
		$item = elgg_get_menu_item('topbar', 'usersettings');
438
		if ($item) {
@@ 467-475 (lines=9) @@
464
			}
465
		}
466
467
		if (elgg_is_active_plugin('reportedcontent')) {
468
			$item = elgg_unregister_menu_item('footer', 'report_this');
469
			if ($item) {
470
				$item->setText(elgg_view_icon('report-this'));
471
				$item->setPriority(500);
472
				$item->setSection('default');
473
				elgg_register_menu_item('extras', $item);
474
			}
475
		}
476
477
478
		//style colleague requests tab