X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile%2Fgroups.inc.php;h=cd2c44790881474fb212a2d56215364140e52672;hb=1e865041b513cbdec96cfe155d9072e1546d4144;hp=a967b943e2e400cc300de2eb4c4bfef1081662d9;hpb=b37aacd982444c6b71d8f0b3555ab52f45e03a71;p=platal.git diff --git a/modules/profile/groups.inc.php b/modules/profile/groups.inc.php index a967b94..cd2c447 100644 --- a/modules/profile/groups.inc.php +++ b/modules/profile/groups.inc.php @@ -1,6 +1,6 @@ settings['section'] = new ProfileSection(); $this->settings['binets'] = new ProfileGroup('binets', 'user_id', 'binet_id'); + $this->watched['section'] = $this->watched['binets'] = true; } - public function prepare(PlatalPage &$page) + public function _prepare(PlPage &$page, $id) { - parent::prepare($page); $page->assign('mygroups', XDB::iterator("SELECT a.nom, a.site, a.diminutif, a.unsub_url, a.pub, m.perms FROM groupex.asso AS a INNER JOIN groupex.membres AS m ON (m.asso_id = a.id) @@ -120,6 +120,7 @@ class ProfileGroups extends ProfilePage WHERE a.inscriptible != 0 AND (a.cat = 'GroupesX' OR a.cat = 'Institutions') ORDER BY a.cat, a.dom, a.nom")); + $page->assign('old', (int)date('Y') >= S::i('promo_sortie')); } }