X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=inline;f=plugins%2Ffunction.profile.php;h=77909bdbb5dedc9d52ea83c853ad096ae98cb444;hb=c76545c351fae4e2298624ff9ee5bf854dc5a5b6;hp=340e9adccb049f41624269b022e188725ab34e3a;hpb=93d42b4fcc6f055a428c9b63e386ac62c918d08a;p=platal.git
diff --git a/plugins/function.profile.php b/plugins/function.profile.php
index 340e9ad..77909bd 100644
--- a/plugins/function.profile.php
+++ b/plugins/function.profile.php
@@ -31,7 +31,7 @@ function smarty_function_profile($params, &$smarty)
$user = User::getWithUID($user);
}
- $name = pl_entities($user->fullName());
+ $name = pl_entities($user->directoryName());
if ($with_sex && $user->isFemale()) {
$name = '•' . $name;
}
@@ -47,7 +47,10 @@ function smarty_function_profile($params, &$smarty)
$name = '';
}
}
- if ($with_groupperms && $user instanceof User && $user->group_perms == 'admin') {
+ if ($user->lost) {
+ $name .= '
';
+ }
+ if ($with_groupperms && $user instanceof User && $user->group_perms == 'admin' && !empty($name)) {
$name = '' . $name . '';
}
return $name;