From 7494a2eeca987e92c87a5c29af84c2520380f243 Mon Sep 17 00:00:00 2001 From: Nicolas Iooss Date: Sat, 2 Nov 2013 20:56:22 +0100 Subject: [PATCH] Add missing quotes in some templates Smarty/PHP was complaing with messages like "Notice: Use of undefined constant right - assumed 'right'" Signed-off-by: Nicolas Iooss --- templates/events/index.tpl | 2 +- templates/marketing/private.tpl | 2 +- templates/xnet/groupes.tpl | 10 +++++----- templates/xnet/include/descr.tpl | 8 ++++---- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/templates/events/index.tpl b/templates/events/index.tpl index f1a7ff2..f458a17 100644 --- a/templates/events/index.tpl +++ b/templates/events/index.tpl @@ -163,7 +163,7 @@ Bienvenue {$smarty.session.user->displayName()}{if t($birthday)}
{if $ev.img} -
+
{$ev.title}
{/if} diff --git a/templates/marketing/private.tpl b/templates/marketing/private.tpl index c7afb5a..0cd678d 100644 --- a/templates/marketing/private.tpl +++ b/templates/marketing/private.tpl @@ -66,7 +66,7 @@ Sa dernière relance date du {$relance|date_format}. {$a.email} {if $a.alias neq ''}{$a.alias} - {if $a.type eq user}(*){/if}{else}Email connu de l'AX{/if} + {if $a.type eq 'user'}(*){/if}{else}Email connu de l'AX{/if} {$a.date|date_format|default:'-'} {$a.last|date_format|default:'-'} diff --git a/templates/xnet/groupes.tpl b/templates/xnet/groupes.tpl index af0fe1a..756776c 100644 --- a/templates/xnet/groupes.tpl +++ b/templates/xnet/groupes.tpl @@ -25,10 +25,10 @@ {if $doms} @@ -48,7 +48,7 @@ {if $doms || $i is even} {/if} - {if !$doms && $i is even && $smarty.foreach.all.last}{/if} diff --git a/templates/xnet/include/descr.tpl b/templates/xnet/include/descr.tpl index f5696f8..82cbb12 100644 --- a/templates/xnet/include/descr.tpl +++ b/templates/xnet/include/descr.tpl @@ -20,7 +20,7 @@ {* *} {**************************************************************************} -{if $cat eq groupesx} +{if $cat eq 'groupesx'}

Les groupes X rassemblent des polytechniciens partageant les mêmes centres d'intérêt, @@ -39,7 +39,7 @@ Si tu souhaites obtenir le statut d'association loi de 1901, tu peux obtenir des renseignements auprès de sites spécialisés.

-{elseif $cat eq binets} +{elseif $cat eq 'binets'}

Les binets sont les associations des élèves polytechniciens effectuant leur scolarité à l'X (sur le @@ -50,7 +50,7 @@ l'École n'ont pas tous leur site web présenté ici. Vous pouvez voir tous les cliquant ici.

-{elseif $cat eq institutions} +{elseif $cat eq 'institutions'}

De nombreux organismes officiels sont liés à l'École polytechnique : le collège de l'École @@ -59,7 +59,7 @@ Cette liste n'est pas exhaustive. Vous pouvez découvrir chacun de ces organisme liens correspondants :

-{elseif $cat eq promotions} +{elseif $cat eq 'promotions'}

Quelques promotions de polytechniciens ont mis au point leur propre site web, qui permet aux élèves -- 2.1.4

- - - - + + + +
+ {$g.nom}