X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Ffunction.profile.php;h=fc7087fc61a02ad46a80b1aa2bbb42f4f3397a01;hb=3424387cde6c635ff16c3b5459c4caa88bb76e2e;hp=ccf45fc9c36fc778355718af05d4c46821675fb5;hpb=57429ea447195202064ba5a3958e8844939059e9;p=platal.git diff --git a/plugins/function.profile.php b/plugins/function.profile.php index ccf45fc..fc7087f 100644 --- a/plugins/function.profile.php +++ b/plugins/function.profile.php @@ -1,6 +1,6 @@ hrid() . '" class="popup2">' . $name . ''; } } - if ($user->lost) { + if ($profile && $profile->isDead()) { + $name .= ' †'; + } else if ($user->lost) { $name .= ' Patte cassée'; } if ($with_groupperms && $user instanceof User && $user->group_perms == 'admin' && !empty($name)) { @@ -71,5 +73,5 @@ function smarty_function_profile($params, $smarty) return $name; } -// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8: ?>