From: Raphaël Barrois Date: Sun, 25 Apr 2010 14:25:38 +0000 (+0200) Subject: Fix template for profile (remaining $o) X-Git-Tag: xorg/1.0.0~292 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=5f96fea9a07fc3aacbaccdb08431e8cd58eac937;p=platal.git Fix template for profile (remaining $o) Signed-off-by: Raphaël Barrois --- diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index a1af8c1..9d0a9b5 100644 --- a/templates/profile/profile.tpl +++ b/templates/profile/profile.tpl @@ -44,7 +44,7 @@ function chgMainWinLoc(strPage) {assign var=photo value=$profile->getPhoto(false)} {if $photo}Photo de {$profile->fullName()}{/if} - {if $logged && ( $profile->section|smarty:nodefaults || $profile->getBinets()|smarty:nodefaults || ($o && $owner->groups()|smarty:nodefaults))} + {if $logged && ( $profile->section|smarty:nodefaults || $profile->getBinets()|smarty:nodefaults || ($owner && $owner->groups()|smarty:nodefaults))}

À l'X…

{if $profile->section}
Section : {$profile->section}
{/if} @@ -52,7 +52,7 @@ function chgMainWinLoc(strPage) {if $binets|@count}
Binet{if count($binets) > 1}s{/if} : {', '|implode:$profile->getBinetsNames()}
{/if} - {if $o} + {if $owner} {assign var=groups value=$owner->groupNames(true)} {if $groups|@count}
Groupe{if count($groups) > 1}s{/if} et institution{if count($groups) > 1}s{/if} X :
@@ -131,10 +131,10 @@ function chgMainWinLoc(strPage)