From 325a641136177203d1c1145b0d8a7f87e134c58e Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sun, 8 Feb 2009 18:19:36 +0100 Subject: [PATCH] Fix notices, restore "see site as..." Signed-off-by: Florent Bruneau --- templates/xnet/skin.tpl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/templates/xnet/skin.tpl b/templates/xnet/skin.tpl index 73a9a98..73d879b 100644 --- a/templates/xnet/skin.tpl +++ b/templates/xnet/skin.tpl @@ -64,10 +64,10 @@ Logo Assos - {if $xnet_type} + {if t($xnet_type)} Logo {$xnet_type} {else} - Logo {$xnet_type} + Logo institutions {/if} @@ -76,7 +76,7 @@ bandeau - {if $xnet_type} + {if t($xnet_type)} {$xnet_type} @@ -116,9 +116,10 @@ {/if} {/foreach} {/foreach} - {if $asso && $is_admin} {* WARN: this breaks "see the site as" || + {assign var=asso_id value=$asso->id} + {if $asso && $is_admin || ($smarty.session.suid && ($smarty.session.suid.perms->hasFlag('admin') || - $smarty.session.suid.may_update[$asso->id])))} *} + $smarty.session.suid.may_update[$asso_id]))}

Voir le site comme...

-- 2.1.4