X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile.php;h=322a13f9fed42b789e164d429d6f5f19de0d0743;hb=32d8754be017db3aa656812fca2a92704ebe29ae;hp=e1dbec55094f76c18de0914d08807ad2ee3b3bcb;hpb=58acfe8b40d3417e7b1a5ffd868a52509d053558;p=platal.git diff --git a/modules/profile.php b/modules/profile.php index e1dbec5..322a13f 100644 --- a/modules/profile.php +++ b/modules/profile.php @@ -337,8 +337,8 @@ class ProfileModule extends PLModule $page->addJsLink('grades.js'); $page->addJsLink('profile.js'); $page->addJsLink('jquery.autocomplete.js'); - $wiz = new PlWizard('Profil', 'core/plwizard.tpl', true, true); - require_once dirname(__FILE__) . '/profile/page.inc.php'; + $wiz = new PlWizard('Profil', PlPage::getCoreTpl('plwizard.tpl'), true, true); + $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'); @@ -759,8 +759,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) {