From d683ed5edff04eb64077ae271d8b50aec5c0e8c5 Mon Sep 17 00:00:00 2001
From: "Committo,Ergo:sum" <esj@rezo.net>
Date: Sat, 23 Sep 2006 20:46:58 +0000
Subject: [PATCH] =?UTF-8?q?Permettre=20aux=20admins=20restreints=20de=20s'?=
 =?UTF-8?q?abonner=20au=20RSS=20de=20leur=20forum,=20et=20au=20pipeline=20?=
 =?UTF-8?q?introduit=20en=20[6823]=C2=A0d'enfin=20fonctionner.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ecrire/exec/articles_forum.php | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/ecrire/exec/articles_forum.php b/ecrire/exec/articles_forum.php
index a6139a808e..ba87ef2fa7 100644
--- a/ecrire/exec/articles_forum.php
+++ b/ecrire/exec/articles_forum.php
@@ -47,7 +47,7 @@ function exec_articles_forum_dist()
 	. '<br />'
 	. afficher_forum($res,"", '', $id_article);
 
-	$droit= ($connect_statut=='0minirezo' AND acces_rubrique($id_rubrique));
+	$droit= acces_rubrique($id_rubrique);
 
 	if (_request('var_ajaxcharset') AND $droit) return $mess;
 
@@ -55,7 +55,7 @@ function exec_articles_forum_dist()
 
 	debut_page($titre, "naviguer", "articles", "", "", $id_rubrique);
 
-	articles_forum_cadres($id_rubrique, $titre, 'articles', "id_article=$id_article");
+	articles_forum_cadres($id_rubrique, $id_article, $titre, 'articles', "id_article=$id_article");
 
 	if (!$droit) return;
 
@@ -67,7 +67,7 @@ function exec_articles_forum_dist()
 }
 
 // http://doc.spip.org/@articles_forum_cadres
-function articles_forum_cadres($id_rubrique, $titre, $script, $args)
+function articles_forum_cadres($id_rubrique, $id_article, $titre, $script, $args)
 {
 	debut_grand_cadre();
 
@@ -85,6 +85,12 @@ function articles_forum_cadres($id_rubrique, $titre, $script, $args)
 	  aide ("suiviforum"),
 	  "</font></p>";
 
+	echo "<div style='text-align: "
+	  . $GLOBALS['spip_lang_right']
+	  . ";'>"
+	  . bouton_spip_rss('forum', array('id_article' => $id_article))
+	  . "</div>";
+
 	fin_boite_info();
 
 	echo pipeline('affiche_gauche',array('args'=>array('exec'=>'articles_forum','id_article'=>$id_article),'data'=>''));
-- 
GitLab