diff options
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/admin.php | 9 | ||||
-rw-r--r-- | engine/lib/elgglib.php | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/engine/lib/admin.php b/engine/lib/admin.php index 81ef69baf..6a64bc19a 100644 --- a/engine/lib/admin.php +++ b/engine/lib/admin.php @@ -88,6 +88,9 @@ function elgg_add_admin_submenu_item($section_id, $section_title, $parent_id = N // in the admin section parents never have links if ($parent_id) { $href = "{$CONFIG->url}pg/admin/$parent_id/$section_id"; + } elseif ($section_id == 'overview') { + $href = "{$CONFIG->url}pg/admin/$section_id"; + } else { $href = NULL; } @@ -122,12 +125,14 @@ function admin_init() { // admin area overview and basic site settings elgg_add_admin_submenu_item('overview', elgg_echo('admin:overview')); + elgg_add_admin_submenu_item('site', elgg_echo('admin:site')); - elgg_add_admin_submenu_item('basic', elgg_echo('admin:site:basic'), 'admin:overview:site'); - elgg_add_admin_submenu_item('advanced', elgg_echo('admin:site:advanced'), 'admin:overview:site'); + elgg_add_admin_submenu_item('basic', elgg_echo('admin:site:basic'), 'site'); + elgg_add_admin_submenu_item('advanced', elgg_echo('admin:site:advanced'), 'site'); // appearance elgg_add_admin_submenu_item('appearance', elgg_echo('admin:appearance')); + //elgg_add_admin_submenu_item('basic', elgg_echo('admin:appearance'), 'appearance'); elgg_add_admin_submenu_item('menu_items', elgg_echo('admin:menu_items'), 'appearance'); diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index 8d41de1cc..9ee85c559 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -1139,7 +1139,7 @@ function elgg_get_submenu($context = NULL, $sort = FALSE) { while ($item = current($items)) { $t = ''; // ignore parents created by a child but parent never defined properly - if (!isset($item->text) || !isset($item->href) || !($item->text) || !($item->href)) { + if (!isset($item->text) || !($item->text)) { next($items); continue; } |