From 7e019d2434ea31d5d1e1bbfc1c0381a6a19a5eb4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Barrois?= Date: Sat, 3 Jul 2010 01:55:03 +0200 Subject: [PATCH] Fix link for displaying pending picture on profile (Closes #1166) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaël Barrois --- modules/profile.php | 5 +++++ templates/profile/profile.tpl | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/profile.php b/modules/profile.php index 20305e3..473db30 100644 --- a/modules/profile.php +++ b/modules/profile.php @@ -259,6 +259,11 @@ class ProfileModule extends PLModule $view = 'private'; } + // Display pending picture + if (S::logged() && Env::v('modif') == 'new') { + $page->assign('with_pending_pic', true); + } + // Fetches profile's and profile's owner information and redirects to // marketing if the owner has not subscribed and the requirer has logged in. $profile = Profile::get($pid, Profile::FETCH_ALL, $view); diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index df3cf2c..e1e8210 100644 --- a/templates/profile/profile.tpl +++ b/templates/profile/profile.tpl @@ -42,7 +42,7 @@ function chgMainWinLoc(strPage)
{assign var=photo value=$profile->getPhoto(false)} - {if $photo}Photo de {$profile->fullName()}{/if} + {if $photo}Photo de {$profile->fullName()}{/if} {if $logged && $view eq 'private' && ( $profile->section|smarty:nodefaults || $profile->getBinets()|smarty:nodefaults || ($owner && $owner->groups()|smarty:nodefaults))}

À l'X…

-- 2.1.4