diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-24 01:46:08 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-24 01:46:08 +0000 |
commit | 2aa481c0ac877eacf643cd71c5701c1c271140da (patch) | |
tree | 8502b3be1c16cdbfa655ec96c2da378f7ed05cf9 /engine/lib/users.php | |
parent | c667ce609dc3c1f9f071e39293f8c176d3e1c5dc (diff) | |
download | elgg-2aa481c0ac877eacf643cd71c5701c1c271140da.tar.gz elgg-2aa481c0ac877eacf643cd71c5701c1c271140da.tar.bz2 |
Fixes #2997 - href used instead of url in menu system
git-svn-id: http://code.elgg.org/elgg/trunk@8456 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r-- | engine/lib/users.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php index 9d1cb1ff6..8a5289a03 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -1089,13 +1089,13 @@ function collections_submenu_items() { elgg_register_menu_item('page', array( 'name' => 'friends:collections:view', 'text' => elgg_echo('friends:collections'), - 'url' => "pg/collections/$user->username", + 'href' => "pg/collections/$user->username", )); elgg_register_menu_item('page', array( 'name' => 'friends:collections:add', 'text' => elgg_echo('friends:collections:add'), - 'url' => "pg/collections/add", + 'href' => "pg/collections/add", )); } @@ -1468,7 +1468,7 @@ function users_pagesetup() { $params = array( 'name' => 'friends', 'text' => elgg_echo('friends'), - 'url' => 'pg/friends/' . elgg_get_page_owner_entity()->username, + 'href' => 'pg/friends/' . elgg_get_page_owner_entity()->username, 'contexts' => array('friends') ); elgg_register_menu_item('page', $params); @@ -1476,7 +1476,7 @@ function users_pagesetup() { $params = array( 'name' => 'friendsof', 'text' => elgg_echo('friends:of'), - 'url' => 'pg/friendsof/' . elgg_get_page_owner_entity()->username, + 'href' => 'pg/friendsof/' . elgg_get_page_owner_entity()->username, 'contexts' => array('friends') ); elgg_register_menu_item('page', $params); @@ -1509,14 +1509,14 @@ function users_init() { if ($user) { $params = array( 'name' => 'edit_avatar', - 'url' => "pg/avatar/edit/{$user->username}", + 'href' => "pg/avatar/edit/{$user->username}", 'text' => elgg_echo('avatar:edit'), 'contexts' => array('profile_edit'), ); elgg_register_menu_item('page', $params); $params = array( 'name' => 'edit_profile', - 'url' => "pg/profile/{$user->username}/edit", + 'href' => "pg/profile/{$user->username}/edit", 'text' => elgg_echo('profile:edit'), 'contexts' => array('profile_edit'), ); |