Code Duplication    Length = 8-9 lines in 2 locations

mod/wet4/start.php 2 locations

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