From: Florent Bruneau Date: Sun, 11 Apr 2010 10:20:24 +0000 (+0200) Subject: Fix filter for group trombi. X-Git-Tag: xorg/1.0.0~301 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=8ae9dd2fe82eab0fed1529112a1a90c1bc385d39;p=platal.git Fix filter for group trombi. Signed-off-by: Florent Bruneau --- 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'));