X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Ffunction.profile.php;h=77909bdbb5dedc9d52ea83c853ad096ae98cb444;hb=c76545c351fae4e2298624ff9ee5bf854dc5a5b6;hp=dfc4bf306e768501f93eff88681c31fe96a559a0;hpb=a1534b3f60d76881cd8a7b468617dccf657f4926;p=platal.git
diff --git a/plugins/function.profile.php b/plugins/function.profile.php
index dfc4bf3..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,6 +47,9 @@ function smarty_function_profile($params, &$smarty)
$name = '';
}
}
+ if ($user->lost) {
+ $name .= '
';
+ }
if ($with_groupperms && $user instanceof User && $user->group_perms == 'admin' && !empty($name)) {
$name = '' . $name . '';
}