From e859bdaf82fa2c0c548a65e54a445a469728fd54 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Barrois?= Date: Sat, 20 Mar 2010 01:40:03 +0100 Subject: [PATCH] Fix smarty assigns for full profile display MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaël Barrois --- modules/profile.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) 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))); -- 2.1.4