From a9a7a9ddfe447567ff0e655a2a948a827608fa4b Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Tue, 23 Oct 2007 21:24:52 +0200 Subject: [PATCH] Fix wiki text in RSS Signed-off-by: Florent Bruneau --- modules/events.php | 3 ++- templates/events/rss.tpl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/events.php b/modules/events.php index 9c4f079..2103a17 100644 --- a/modules/events.php +++ b/modules/events.php @@ -253,7 +253,8 @@ class EventsModule extends PLModule $rss = XDB::iterator( 'SELECT e.id, e.titre, e.texte, e.creation_date, e.post_id, p.attachmime IS NOT NULL AS photo, - IF(u2.nom_usage = "", u2.nom, u2.nom_usage) AS nom, u2.prenom, u2.promo + IF(u2.nom_usage = "", u2.nom, u2.nom_usage) AS nom, u2.prenom, u2.promo, + FIND_IN_SET(\'wiki\', e.flags) AS wiki FROM auth_user_md5 AS u INNER JOIN evenements AS e ON ( (e.promo_min = 0 || e.promo_min <= u.promo) AND (e.promo_max = 0 || e.promo_max >= u.promo) ) diff --git a/templates/events/rss.tpl b/templates/events/rss.tpl index 30faf33..1d2aab9 100644 --- a/templates/events/rss.tpl +++ b/templates/events/rss.tpl @@ -43,7 +43,7 @@ {$line.title} {/if} -
{$line.texte}
+
{if $line.wiki}{$line.texte|miniwiki}{else}{$line.texte}{/if}
{if $line.post_id neq -1}

-- 2.1.4