From: Florent Bruneau Date: Tue, 23 Oct 2007 19:24:52 +0000 (+0200) Subject: Fix wiki text in RSS X-Git-Tag: xorg/0.9.16~260 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=a9a7a9ddfe447567ff0e655a2a948a827608fa4b;p=platal.git Fix wiki text in RSS Signed-off-by: Florent Bruneau --- 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}