X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fuser.func.inc.php;h=0fdd3aef3aaa61f9d998603339481593de95cfab;hb=dc6378df04a613f3a65ae5e501b65de64a672b9a;hp=0f8b94489cccd589eccf058009bc7f67dc006be0;hpb=9e7e21fc473e7dec782b06d9643484516f7aed84;p=platal.git diff --git a/include/user.func.inc.php b/include/user.func.inc.php index 0f8b944..0fdd3ae 100644 --- a/include/user.func.inc.php +++ b/include/user.func.inc.php @@ -499,13 +499,14 @@ function &get_user_details($login, $from_uid = '', $view = 'private') } $user['networking'] = Array(); - $res = XDB::iterator("SELECT n.address, n.pub, m.network_type AS type, m.name, m.filter + $res = XDB::iterator("SELECT n.address, n.pub, m.network_type AS type, m.name, m.filter, m.link FROM profile_networking AS n INNER JOIN profile_networking_enum AS m ON (n.network_type = m.network_type) WHERE n.uid = {?}", $uid); while($network = $res->next()) { if (has_user_right($network['pub'], $view)) { + $network['link'] = str_replace('%s', $network['address'], $network['link']); $user['networking'][] = $network; } }