Adds a dagger symbol for dead people on group members.
authorAnne Limoges <anne.limoges_git@polytechnique.org>
Fri, 28 Dec 2012 15:35:54 +0000 (16:35 +0100)
committerAnne Limoges <anne.limoges_git@polytechnique.org>
Fri, 28 Dec 2012 15:37:34 +0000 (16:37 +0100)
plugins/function.profile.php

index ccf45fc..f970160 100644 (file)
@@ -62,7 +62,9 @@ function smarty_function_profile($params, $smarty)
             $name = '<a href="profile/' . $profile->hrid() . '" class="popup2">' . $name . '</a>';
         }
     }
-    if ($user->lost) {
+    if ($profile && $profile->isDead()) {
+        $name .= ' &dagger;';
+    } else if ($user->lost) {
         $name .= ' <a href="https://www.polytechnique.org/marketing/broken/' . $user->hruid . '"><img src="images/icons/error.gif" alt="Patte cassée" /></a>';
     }
     if ($with_groupperms && $user instanceof User && $user->group_perms == 'admin' && !empty($name)) {