aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-10 20:28:13 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-10 20:28:13 +0000
commit2a7e79685a609344bd8a09612727ea691f36c279 (patch)
tree436f041ef7927cffaf986a21f7fd7be776aeef07
parent2c2ad03dce82a3fffa575a9a1233345a85e0db34 (diff)
downloadelgg-2a7e79685a609344bd8a09612727ea691f36c279.tar.gz
elgg-2a7e79685a609344bd8a09612727ea691f36c279.tar.bz2
fixed access issue on menu name
git-svn-id: http://code.elgg.org/elgg/trunk@8092 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/navigation.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/navigation.php b/engine/lib/navigation.php
index d11262933..1d3098938 100644
--- a/engine/lib/navigation.php
+++ b/engine/lib/navigation.php
@@ -62,7 +62,7 @@ function elgg_unregister_menu_item($menu_name, $item_name) {
}
foreach ($CONFIG->menus[$menu_name] as $index => $menu_object) {
- if ($menu_object->name == $item_name) {
+ if ($menu_object->getName() == $item_name) {
unset($CONFIG->menus[$menu_name][$index]);
return true;
}