X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile.php;h=039f71a7fac9e6edd6a7f83a8d73aaf769dce93e;hb=5d42c993d85a2f1fa3595eb1591a921c0f89d8cd;hp=224d9cec6ab091b1fdd98af8fe4366d389d83430;hpb=6d20fb1df94dbf2fbada3aa1cb41e2f7596c0e9b;p=platal.git diff --git a/modules/profile.php b/modules/profile.php index 224d9ce..039f71a 100644 --- a/modules/profile.php +++ b/modules/profile.php @@ -318,7 +318,7 @@ class ProfileModule extends PLModule $page->addJsLink('profile.js'); $page->addJsLink('jquery.autocomplete.js'); $wiz = new PlWizard('Profil', PlPage::getCoreTpl('plwizard.tpl'), true, true); - require_once dirname(__FILE__) . '/profile/page.inc.php'; + $this->load('page.inc.php'); $wiz->addPage('ProfileGeneral', 'Général', 'general'); $wiz->addPage('ProfileAddresses', 'Adresses personnelles', 'adresses'); $wiz->addPage('ProfileGroups', 'Groupes X - Binets', 'poly'); @@ -718,8 +718,9 @@ class ProfileModule extends PLModule $x = substr($x, 0, strlen($x) - 4); } - $vcard = new VCard($x); - $vcard->do_page($page); + $vcard = new VCard(); + $vcard->addUser($x); + $vcard->show(); } function handler_admin_trombino(&$page, $uid = null, $action = null) {