diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-06-09 20:42:58 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-06-09 20:42:58 +0000 |
commit | 8cd4d7f312dbf68636d10a34121d781628c2ead2 (patch) | |
tree | d2ae2b5a10529bc488e9a05387c12b6e49faaa84 /engine/lib/admin.php | |
parent | 64045426f4eb5150c46dd2534058c3522bbe6ecf (diff) | |
download | elgg-8cd4d7f312dbf68636d10a34121d781628c2ead2.tar.gz elgg-8cd4d7f312dbf68636d10a34121d781628c2ead2.tar.bz2 |
Fixes #3548 the check for an admin menu's parent wasn't working
git-svn-id: http://code.elgg.org/elgg/trunk@9159 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/admin.php')
-rw-r--r-- | engine/lib/admin.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/admin.php b/engine/lib/admin.php index 7c41fc24e..6ef626f81 100644 --- a/engine/lib/admin.php +++ b/engine/lib/admin.php @@ -183,7 +183,7 @@ function elgg_admin_notice_exists($id) { function elgg_register_admin_menu_item($section, $menu_id, $parent_id = NULL, $priority = 100) { // make sure parent is registered - if ($parent_id && !elgg_is_menu_item_registered($menu_id, $parent_id)) { + if ($parent_id && !elgg_is_menu_item_registered('page', $parent_id)) { elgg_register_admin_menu_item($section, $parent_id); } |