projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Uses directory names to sort names in ML lists.
[platal.git]
/
modules
/
lists
/
lists.inc.php
diff --git
a/modules/lists/lists.inc.php
b/modules/lists/lists.inc.php
index
2307d9d
..
9f902c4
100644
(file)
--- a/
modules/lists/lists.inc.php
+++ b/
modules/lists/lists.inc.php
@@
-33,17
+33,16
@@
function list_sort_owners(&$members, $tri_promo = true)
$membres[0][] = array('l' => $mem, 'p' => (!$tri_promo ? 'inconnue' : null));
} else {
$uid = $user->id();
$membres[0][] = array('l' => $mem, 'p' => (!$tri_promo ? 'inconnue' : null));
} else {
$uid = $user->id();
- $nom = $user->
fullName(); # XXX: Get a notion of 'last name' here, I want to sort user by lastnames
+ $nom = $user->
directoryName();
$promo = $user->promo();
if (!$promo) {
$promo = 'non-X';
}
$promo = $user->promo();
if (!$promo) {
$promo = 'non-X';
}
- $broken = false; # XXX: fill it with the good value if the user has no valid email
$key = $tri_promo ? ($promo != 'non-X' ? $promo : 0) : strtoupper(@$nom{0});
if ($tri_promo) {
$promo = null;
}
$key = $tri_promo ? ($promo != 'non-X' ? $promo : 0) : strtoupper(@$nom{0});
if ($tri_promo) {
$promo = null;
}
- $membres[$key][$nom.$mem] =
Array('n' => $nom, 'l' => $mem, 'p' => $promo, 'x' => $uid, 'b' => $broken
);
+ $membres[$key][$nom.$mem] =
array('n' => $nom, 'l' => $mem, 'p' => $promo, 'x' => $uid
);
}
}
}
}