X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Flists.php;h=8b417e0cc96f89a097c536cfc5f8395ce8585b51;hb=14f4068d03b9494b2b755e8aefe2cf1747a65aa7;hp=eec6fa24f52ba86bf8043ffe567caebd08dd642a;hpb=87c297112074d1da4773359b7c9d17d5fab0ff1b;p=platal.git diff --git a/modules/lists.php b/modules/lists.php index eec6fa2..8b417e0 100644 --- a/modules/lists.php +++ b/modules/lists.php @@ -377,29 +377,35 @@ class ListsModule extends PLModule $page->kill("La liste n'existe pas ou tu n'as pas le droit d'en voir les détails."); } - global $platal; list(,$members) = $this->client->get_members($liste); - $users = array(); - foreach ($members as $m) { - $users[] = $m[1]; + + if ($action == 'moderators') { + $users = $owners; + $show_moderators = true; + $action = $subaction; + $subaction = ''; + } else { + $show_moderators = false; + $users = array(); + foreach ($members as $m) { + $users[] = $m[1]; + } } + require_once 'userset.inc.php'; - $view = new ArraySet($users); - $view->addMod('trombi', 'Trombinoscope', true, array('with_promo' => true)); + $view = new UserArraySet($users); + $view->addMod('trombi', 'Trombinoscope', false, array('with_promo' => true)); + $view->addMod('listmember', 'Annuaire', true); if (empty($GLOBALS['IS_XNET_SITE'])) { $view->addMod('minifiche', 'Mini-fiches', false); } // TODO: Reactivate when the new map is completed. // $view->addMod('geoloc', 'Planisphère'); $view->apply("lists/annu/$liste", $page, $action, $subaction); - if ($action == 'geoloc' && $subaction) { - return; - } $page->changeTpl('lists/annu.tpl'); - $moderos = list_sort_owners($owners[1]); $page->assign_by_ref('details', $owners[0]); - $page->assign_by_ref('owners', $moderos); + $page->assign('show_moderators', $show_moderators); } function handler_archives($page, $liste = null, $action = null, $artid = null)