From 24a811c308365c0b5e8543a4f899d95f3e52f4f5 Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Mon, 28 Jan 2013 11:51:35 +0100 Subject: [PATCH] Replace defined test by a none test --- templates/web/email-template.html.twig | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/web/email-template.html.twig b/templates/web/email-template.html.twig index 2214197196..6bc7c3889a 100644 --- a/templates/web/email-template.html.twig +++ b/templates/web/email-template.html.twig @@ -15,7 +15,7 @@ - {% if logoUrl is defined %} + {% if logoUrl is not none %} {{ logoText }} {% else %} {{ logoText }} @@ -40,7 +40,7 @@ - {% if senderName is defined and senderMail is defined %} + {% if senderName is not none and senderMail is not none %} {{ senderName }} - {{ senderMail }}
{% endif %} @@ -53,14 +53,14 @@ - {% if expirationMessage is defined %} + {% if expiration is not none %} - Le lien suivant est valable jusque {{ expirationMessage | app['date-formater']->getDate() }} {{ expirationMessage | app['date-formater']->getTime() }} + Le lien suivant est valable jusque {{ app['date-formatter'].getDate(expiration) }} {{ app['date-formatter'].getTime(expiration) }} {% endif %} - {% if buttonText is defined and buttonUrl is defined %} + {% if buttonText is not none and buttonUrl is not none %} @@ -100,7 +100,7 @@ Si cet email contient des liens non cliquables, copiez/collez ces liens dans votre navigateur.
Message automatique de Phraseanet - Pour gérer l'envoi d'email automatique, connectez-vous à - {{ phraseanetURL }} + {{ phraseanetTitle }}