X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fcarnet.php;h=aee28901b1888192d1bbe01d6768ad84888e4228;hb=05978b09201b86278849d6448a15b4a59e2ed852;hp=4f80b4993ef1ae03210abdf9e9420e3c9f30dad4;hpb=76362eeb011de4f2cd7825f557643a72494475f9;p=platal.git diff --git a/modules/carnet.php b/modules/carnet.php index 4f80b49..aee2890 100644 --- a/modules/carnet.php +++ b/modules/carnet.php @@ -24,18 +24,18 @@ class CarnetModule extends PLModule function handlers() { return array( - 'carnet' => $this->make_hook('index', AUTH_COOKIE, 'directory_private'), - 'carnet/panel' => $this->make_hook('panel', AUTH_COOKIE, 'directory_private'), - 'carnet/notifs' => $this->make_hook('notifs', AUTH_COOKIE, 'directory_private'), - - 'carnet/contacts' => $this->make_hook('contacts', AUTH_COOKIE, 'directory_private'), - 'carnet/contacts/pdf' => $this->make_hook('pdf', AUTH_COOKIE, 'directory_private'), - 'carnet/contacts/vcard' => $this->make_hook('vcard', AUTH_COOKIE, 'directory_private'), - 'carnet/contacts/ical' => $this->make_token_hook('ical', AUTH_COOKIE, 'directory_private'), - 'carnet/contacts/csv' => $this->make_token_hook('csv', AUTH_COOKIE, 'directory_private'), + 'carnet' => $this->make_hook('index', AUTH_COOKIE, 'directory_private'), + 'carnet/panel' => $this->make_hook('panel', AUTH_COOKIE, 'directory_private'), + 'carnet/notifs' => $this->make_hook('notifs', AUTH_COOKIE, 'directory_private'), + + 'carnet/contacts' => $this->make_hook('contacts', AUTH_COOKIE, 'directory_private'), + 'carnet/contacts/pdf' => $this->make_hook('pdf', AUTH_COOKIE, 'directory_private'), + 'carnet/contacts/vcard' => $this->make_hook('vcard', AUTH_COOKIE, 'directory_private'), + 'carnet/contacts/ical' => $this->make_token_hook('ical', AUTH_COOKIE, 'directory_private'), + 'carnet/contacts/csv' => $this->make_token_hook('csv', AUTH_COOKIE, 'directory_private'), 'carnet/contacts/csv/birthday' => $this->make_token_hook('csv_birthday', AUTH_COOKIE, 'directory_private'), - 'carnet/rss' => $this->make_token_hook('rss', AUTH_COOKIE, 'directory_private'), + 'carnet/rss' => $this->make_token_hook('rss', AUTH_COOKIE, 'directory_private'), ); } @@ -373,7 +373,7 @@ class CarnetModule extends PLModule 'timestamp' => $date, 'date' => date('Ymd', $date), 'tomorrow' => date('Ymd', $tomorrow), - 'hruid' => $profile->hrid(), + 'email' => $profile->owner()->bestEmail(), 'summary' => 'Anniversaire de ' . $profile->fullName(true) ); } @@ -419,7 +419,7 @@ class CarnetModule extends PLModule { $pf = new ProfileFilter(new UFC_Contact(S::user())); $vcard = new VCard($photos == 'photos'); - $vcard->addProfiles($pf->getProfiles()); + $vcard->addProfiles($pf->getProfiles(null, Profile::FETCH_ALL)); $vcard->show(); }