X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Ffunction.profile.php;h=340e9adccb049f41624269b022e188725ab34e3a;hb=01bb23e6f5ae192ffaa6afbbd94b21b2b37f2138;hp=d686b1ce1b2b972c6d014b322130e60b18ae176b;hpb=45dcd6dd4d35789f657ffb1e983de67897499b64;p=platal.git diff --git a/plugins/function.profile.php b/plugins/function.profile.php index d686b1c..340e9ad 100644 --- a/plugins/function.profile.php +++ b/plugins/function.profile.php @@ -1,6 +1,6 @@ b('promo', false); + $with_sex = $params->b('sex', true); + $with_link = $params->b('link', true); + $with_groupperms = $params->b('groupperms', true); + $user = $params->v('user'); + if (is_int($user) || ctype_digit($user)) { + $user = User::getWithUID($user); + } $name = pl_entities($user->fullName()); if ($with_sex && $user->isFemale()) {