--- weblinks.module 2009-07-07 01:34:46.000000000 +0100 +++ weblinks.module 2009-07-22 17:33:29.000000000 +0100 @@ -442,16 +442,12 @@ function weblinks_link($type, $object, $ $admin = user_access('administer weblinks'); } - // We don't want the link if we are asking for a specific user. - if (arg(1) == 'user' && arg(2) == $object->uid) { - return $links; - } - - if ($user_link && $object->uid != $user->uid) { - $links['weblinks-user-link'] = array( - 'title' => t("!name's links", array('!name' => theme('username', $object, array('plain' => TRUE)))), - 'href' => 'weblinks/user/'. $object->uid, - ); + // Add "username's links" if we are not showing a specific user, and the link is not the user's own link. + if ($user_link && $object->uid != $user->uid && !(arg(1) == 'user' && arg(2) == $object->uid)) { + $links['weblinks-user-link'] = array( + 'title' => t("@name's links", array('@name' => $object->name)), + 'href' => 'weblinks/user/'. $object->uid, + ); } if ($admin) {