From e9d30b93c7bb480bc464e46e7a7504bb403bebe1 Mon Sep 17 00:00:00 2001
From: Pascal Corpet
Date: Sun, 30 May 2010 18:00:40 +0200
Subject: [PATCH] $smarty.session.promo not accessible anymore, use
$smarty.session.user->profile()->yearpromo()
---
templates/carnet/notifs.tpl | 3 ++-
templates/emails/index.tpl | 4 ++--
templates/lists/create.tpl | 3 ++-
templates/lists/moderate_mail.tpl | 3 ++-
templates/profile/trombino.tpl | 3 ++-
templates/stats/index.tpl | 5 ++++-
templates/xnetgrp/inscrire.tpl | 3 ++-
7 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/templates/carnet/notifs.tpl b/templates/carnet/notifs.tpl
index 8ffac1d..7ee9e0b 100644
--- a/templates/carnet/notifs.tpl
+++ b/templates/carnet/notifs.tpl
@@ -59,7 +59,8 @@ S'il n'y a rien à te signaler l'email ne t'est pas envoyé.
Anniversaires
diff --git a/templates/emails/index.tpl b/templates/emails/index.tpl
index 0aad81e..a3a52cb 100644
--- a/templates/emails/index.tpl
+++ b/templates/emails/index.tpl
@@ -72,8 +72,8 @@
-(*) cette adresse email t'est réservée pour une période 100 ans après ton entrée à l'X (dans ton cas, jusqu'en
-{$smarty.session.promo+100}).
+{assign var="profile" value=$smarty.session.user->profile()}
+(*) cette adresse email t'est réservée pour une période 100 ans après ton entrée à l'X (dans ton cas, jusqu'en {$profile->yearpromo()+100}).
(**) cette adresse email t'est réservée à vie.
diff --git a/templates/lists/create.tpl b/templates/lists/create.tpl
index 144d34b..b5395cc 100644
--- a/templates/lists/create.tpl
+++ b/templates/lists/create.tpl
@@ -62,7 +62,8 @@ liste :
Promotion : |
|
+ {assign var="profile" value=$smarty.session.user->profile()}
+ {if $smarty.post.promo}value='{$smarty.post.promo}'{else}value='{$profile->yearpromo()}'{/if} />
Par exemple : 2004 |
diff --git a/templates/lists/moderate_mail.tpl b/templates/lists/moderate_mail.tpl
index 06b6245..526cf88 100644
--- a/templates/lists/moderate_mail.tpl
+++ b/templates/lists/moderate_mail.tpl
@@ -35,7 +35,8 @@
raison (pour les refus) :
|
diff --git a/templates/profile/trombino.tpl b/templates/profile/trombino.tpl
index 581b4e9..029bbd4 100644
--- a/templates/profile/trombino.tpl
+++ b/templates/profile/trombino.tpl
@@ -25,7 +25,8 @@