From 078017723b52673972b6d12989ffb5043e158f31 Mon Sep 17 00:00:00 2001
From: "Committo,Ergo:sum" <esj@rezo.net>
Date: Thu, 13 Apr 2006 22:51:10 +0000
Subject: [PATCH] =?UTF-8?q?En=20fait,=20d'apr=C3=A8s=20les=20[sp=C3=A9cifi?=
 =?UTF-8?q?cations->http://www.spip.net/fr=5Farticle912.html]=20il=20n'y?=
 =?UTF-8?q?=20a=20besoin=20d'aucune=20jointure=20pour=20compiler=20une=20b?=
 =?UTF-8?q?oucle=20de=20signatures.=20Donc=20on=20optimise,=20mais=20c'est?=
 =?UTF-8?q?=20en=20fait=20dommage=20car=20il=20n'y=20a=20donc=20pas=20moye?=
 =?UTF-8?q?n=20d'acc=C3=A9der=20par=20squelette=20aux=20=C3=A9l=C3=A9ments?=
 =?UTF-8?q?=20de=20la=20table=20"p=C3=A9titions".=20Il=20faudra=20revoir?=
 =?UTF-8?q?=20=C3=A7a.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ecrire/public/boucles.php    | 5 -----
 ecrire/public/interfaces.php | 2 --
 2 files changed, 7 deletions(-)

diff --git a/ecrire/public/boucles.php b/ecrire/public/boucles.php
index 9821ad6661..4583f60ad4 100644
--- a/ecrire/public/boucles.php
+++ b/ecrire/public/boucles.php
@@ -149,16 +149,11 @@ function boucle_SIGNATURES_dist($id_boucle, &$boucles) {
 	$mstatut = $id_table .'.statut';
 
 	$boucle->from[$id_table] =  "spip_signatures";
-	$boucle->from["petitions"] =  "spip_petitions";
-	$boucle->from["articles"] =  "spip_articles";
-	$boucle->where[]= array("'='", "'petitions.id_article'", "'$id_table.id_article'");
-	$boucle->where[]= array("'='", "'petitions.id_article'", "'articles.id_article'");
 
 	// Restreindre aux elements publies
 	if (!$boucle->statut) {
 		$boucle->where[]= array("'='", "'$mstatut'", "'\"publie\"'");
 	}
-	$boucle->group[] =  $boucle->id_table . '.' . $boucle->primary;  
 	return calculer_boucle($id_boucle, $boucles); 
 }
 
diff --git a/ecrire/public/interfaces.php b/ecrire/public/interfaces.php
index 4d0e97b4ce..1dff6a96cf 100644
--- a/ecrire/public/interfaces.php
+++ b/ecrire/public/interfaces.php
@@ -187,8 +187,6 @@ $exceptions_des_tables['syndic_articles']['url_site']=array('spip_syndic',
 $exceptions_des_tables['syndic_articles']['nom_site']=array('spip_syndic',
 'nom_site');
 
-$exceptions_des_tables['signatures']['id_article']=array('spip_petitions', 'id_article');
-
 $table_date['articles']='date';
 $table_date['auteurs']='date';
 $table_date['breves']='date_heure';
-- 
GitLab