Elgg/Elgg — pull request #6001 by thuvalpakshi (2013-08-30 08:23:26+00:00)
Title: 1.8

$url = "avatar/edit/$user->username";
$item = new ElggMenuItem('avatar:edit', elgg_echo('avatar:edit'), $url);
$item->setSection('admin');
$return[] = $item;

add to engine/lib/users.php after line no : 874

discussed here https://github.com/Elgg/Elgg/issues/5989