From: Raphaël Barrois Date: Fri, 2 Jul 2010 23:55:03 +0000 (+0200) Subject: Fix link for displaying pending picture on profile (Closes #1166) X-Git-Tag: xorg/1.0.1~367 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=7e019d2434ea31d5d1e1bbfc1c0381a6a19a5eb4;p=platal.git Fix link for displaying pending picture on profile (Closes #1166) Signed-off-by: Raphaël Barrois --- 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…