Code Duplication    Length = 7-9 lines in 2 locations

engine/lib/admin.php 1 location

@@ 320-328 (lines=9) @@
317
		elgg_register_plugin_hook_handler('prepare', 'menu:page', '_elgg_admin_sort_page_menu');
318
	}
319
320
	if (elgg_is_admin_logged_in()) {
321
		elgg_register_menu_item('topbar', array(
322
			'name' => 'administration',
323
			'href' => 'admin',
324
			'text' => elgg_view_icon('settings') . elgg_echo('admin'),
325
			'priority' => 100,
326
			'section' => 'alt',
327
		));
328
	}
329
330
	// widgets
331
	$widgets = array('online_users', 'new_users', 'content_stats', 'banned_users', 'admin_welcome', 'control_panel', 'cron_status');

mod/dashboard/start.php 1 location

@@ 14-20 (lines=7) @@
11
	elgg_extend_view('css/elgg', 'dashboard/css');
12
	elgg_extend_view('js/elgg', 'dashboard/js');
13
14
	if ( elgg_is_logged_in() ) elgg_register_menu_item('topbar', array(
15
		'name' => 'dashboard',
16
		'href' => 'dashboard',
17
		'text' => elgg_view_icon('home') . elgg_echo('dashboard'),
18
		'priority' => 450,
19
		'section' => 'alt',
20
	));
21
22
	elgg_register_plugin_hook_handler('get_list', 'default_widgets', 'dashboard_default_widgets');
23
}