Switch last uses of VCard to Profile system
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Mon, 15 Feb 2010 14:31:53 +0000 (15:31 +0100)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Mon, 15 Feb 2010 14:31:53 +0000 (15:31 +0100)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
modules/profile.php
modules/xnetgrp.php

index e1c70c0..51bde1e 100644 (file)
@@ -747,7 +747,7 @@ class ProfileModule extends PLModule
         }
 
         $vcard = new VCard();
-        $vcard->addUser($x);
+        $vcard->addProfile(Profile::get($x));
         $vcard->show();
     }
 
index 3348d2c..c669cb4 100644 (file)
@@ -340,7 +340,7 @@ class XnetGrpModule extends PLModule
     {
         global $globals;
         $vcard = new VCard($photos == 'photos', 'Membre du groupe ' . $globals->asso('nom'));
-        $vcard->addUsers($globals->asso()->getMembers()->getUIDs());
+        $vcard->addProfiles($globals->asso()->getMembers()->getProfiles());
         $vcard->show();
     }