X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile.php;h=813028c93f3f6084e1a8e9e3469caeb6c9fe614d;hb=04d12e249de32cb30d8e8846a2974d47fd4025b5;hp=c680c252ea8073a7e66323397c60dcf5f44db4a6;hpb=c2b36eadda10e7e4245013a88073e751e811a403;p=platal.git diff --git a/modules/profile.php b/modules/profile.php index c680c25..813028c 100644 --- a/modules/profile.php +++ b/modules/profile.php @@ -285,7 +285,7 @@ class ProfileModule extends PLModule // Determines and displays the virtual alias. if (!is_null($owner) && $profile->alias_pub == 'public') { - $page->assign('virtualalias', $owner->emailAlias()); + $page->assign('virtualalias', $owner->emailAliases()); } $page->assign_by_ref('profile', $profile); @@ -427,12 +427,12 @@ class ProfileModule extends PLModule require_once "education.func.inc.php"; } - function handler_ajax_medal($page, $id) + function handler_ajax_medal($page, $i, $id) { pl_content_headers("text/html"); $page->changeTpl('profile/deco.medal.tpl', NO_SKIN); - $page->assign('id', $id); - $page->assign('medal', array('valid' => 0, 'grade' => 0)); + $page->assign('id', $i); + $page->assign('medal', array('id' => $id, 'grade' => 0, 'valid' => 0)); } function handler_ajax_job($page, $id) @@ -667,7 +667,7 @@ class ProfileModule extends PLModule } $vcard = new VCard(); - $vcard->addProfile(Profile::get($x)); + $vcard->addProfile(Profile::get($x, Profile::FETCH_ALL)); $vcard->show(); }