From f40e4ce5c62576967d1aa7c43ed626681c870ade Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Barrois?= Date: Mon, 15 Feb 2010 15:08:03 +0100 Subject: [PATCH] Use ProfileFilter for vcard building MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaël Barrois --- modules/carnet.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/carnet.php b/modules/carnet.php index ac3c0fe..0c8f790 100644 --- a/modules/carnet.php +++ b/modules/carnet.php @@ -383,11 +383,9 @@ class CarnetModule extends PLModule function handler_vcard(&$page, $photos = null) { - $res = XDB::query('SELECT contact - FROM contacts - WHERE uid = {?}', S::v('uid')); + $pf = new ProfileFilter(new UFC_Contact(S::user())); $vcard = new VCard($photos == 'photos'); - $vcard->addUsers($res->fetchColumn()); + $vcard->addProfiles($pf->getProfiles()); $vcard->show(); } } -- 2.1.4