From 8ae9dd2fe82eab0fed1529112a1a90c1bc385d39 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sun, 11 Apr 2010 12:20:24 +0200 Subject: [PATCH] Fix filter for group trombi. Signed-off-by: Florent Bruneau --- modules/xnetgrp.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/xnetgrp.php b/modules/xnetgrp.php index 4fc69a4..1f58fd5 100644 --- a/modules/xnetgrp.php +++ b/modules/xnetgrp.php @@ -286,7 +286,12 @@ class XnetGrpModule extends PLModule http_redirect("https://www.polytechnique.org/search/adv?rechercher=Chercher&groupex={$globals->asso('id')}" . "&cityid=" . Env::v('cityid') . "&mapid=" . Env::v('mapid')); } else if ($action == 'geoloc' || $action == 'trombi') { - $view = new UserSet(); + __autoload('userset'); + if ($action == 'trombi') { + $view = new ProfileSet(new UFC_Group($globals->asso('id'))); + } else { + $view = new UserSet(new UFC_Group($globals->asso('id'))); + } $view->addMod('trombi', 'Trombinoscope'); // TODO: Reactivate when the new map is completed. // $view->addMod('geoloc', 'Planisphère', false, array('with_annu' => 'annuaire/search')); -- 2.1.4