aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-11 02:15:22 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-11 02:15:22 +0000
commit239691e4507756985f6d54c002df7d8772e790c4 (patch)
tree800cfc4943265011f6cfe37a8af7410a5da96c84 /engine
parent45d1a0ec7c96297f204744a5ca8e340c08ba8ea9 (diff)
downloadelgg-239691e4507756985f6d54c002df7d8772e790c4.tar.gz
elgg-239691e4507756985f6d54c002df7d8772e790c4.tar.bz2
Fix admin area for overview and appearance.
git-svn-id: http://code.elgg.org/elgg/trunk@5997 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/admin.php9
-rw-r--r--engine/lib/elgglib.php2
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;
}