From: Anne Limoges Date: Fri, 28 Dec 2012 15:35:54 +0000 (+0100) Subject: Adds a dagger symbol for dead people on group members. X-Git-Tag: xorg/1.1.7~21 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=711f1d3539c4912ed973deabc6bbf863de70cc8e;p=platal.git Adds a dagger symbol for dead people on group members. --- diff --git a/plugins/function.profile.php b/plugins/function.profile.php index ccf45fc..f970160 100644 --- a/plugins/function.profile.php +++ b/plugins/function.profile.php @@ -62,7 +62,9 @@ function smarty_function_profile($params, $smarty) $name = '' . $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)) {