aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-06-09 20:42:58 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-06-09 20:42:58 +0000
commit8cd4d7f312dbf68636d10a34121d781628c2ead2 (patch)
treed2ae2b5a10529bc488e9a05387c12b6e49faaa84 /engine/lib
parent64045426f4eb5150c46dd2534058c3522bbe6ecf (diff)
downloadelgg-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')
-rw-r--r--engine/lib/admin.php2
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);
}