From: Raphaël Barrois Date: Sat, 20 Mar 2010 00:40:03 +0000 (+0100) Subject: Fix smarty assigns for full profile display X-Git-Tag: xorg/1.0.0~332^2~29 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=e859bdaf82fa2c0c548a65e54a445a469728fd54;p=platal.git Fix smarty assigns for full profile display Signed-off-by: Raphaël Barrois --- diff --git a/modules/profile.php b/modules/profile.php index 3999826..1debe66 100644 --- a/modules/profile.php +++ b/modules/profile.php @@ -247,21 +247,14 @@ class ProfileModule extends PLModule // Sets the title of the html page. $page->setTitle($profile->fullName()); - // Is that really useful??? - /*$photo = 'photo/' . $profile->hrid() . ($new ? '/req' : ''); - if (!isset($user['photo_pub']) || !has_user_right($user['photo_pub'], $view)) { - $photo = ""; - } - $page->assign('photo_url', $photo); - }*/ - // Determines and displays the virtual alias. if (!is_null($owner)) { $page->assign('virtualalias', $owner->emailAlias()); } - $page->assign_by_ref('profile', $profile); - $page->assign_by_ref('owner', $owner); + $page->assign_by_ref('p', $profile); + $page->assign_by_ref('o', $owner); + $page->assign('logged', S::logged()); $page->addJsLink('close_on_esc.js'); header('Last-Modified: ' . date('r', strtotime($profile->last_change)));