aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ElggMenuBuilder.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-01 22:29:19 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-01 22:29:19 +0000
commit02d310ab9a84f1e994639d096708546318197b96 (patch)
tree01060ef8c843fd533fa2a223d0de795900e11521 /engine/classes/ElggMenuBuilder.php
parenta1332ae971af685ceb2ca12610c69e92e81bfeff (diff)
downloadelgg-02d310ab9a84f1e994639d096708546318197b96.tar.gz
elgg-02d310ab9a84f1e994639d096708546318197b96.tar.bz2
Fixes #3031 using 'priority' now
git-svn-id: http://code.elgg.org/elgg/trunk@8545 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/classes/ElggMenuBuilder.php')
-rw-r--r--engine/classes/ElggMenuBuilder.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/classes/ElggMenuBuilder.php b/engine/classes/ElggMenuBuilder.php
index 9112c9535..bafed2cea 100644
--- a/engine/classes/ElggMenuBuilder.php
+++ b/engine/classes/ElggMenuBuilder.php
@@ -66,6 +66,7 @@ class ElggMenuBuilder {
// get menu items for this context
$selected_menu = array();
foreach ($this->menu as $menu_item) {
+ //var_dump($menu_item);
if ($menu_item->inContext()) {
$selected_menu[] = $menu_item;
}
@@ -182,7 +183,7 @@ class ElggMenuBuilder {
case 'name':
$sort_callback = array('ElggMenuBuilder', 'compareByName');
break;
- case 'weight':
+ case 'priority':
$sort_callback = array('ElggMenuBuilder', 'compareByWeight');
break;
case 'order':
@@ -249,7 +250,7 @@ class ElggMenuBuilder {
}
/**
- * Compare two menu items by their weight
+ * Compare two menu items by their priority
*
* @param ElggMenuItem $a
* @param ElggMenuItem $b