From 557451b77abbd90b7349dcd78e725336fb38b2cb Mon Sep 17 00:00:00 2001
From: "Committo,Ergo:sum" <esj@rezo.net>
Date: Tue, 2 Mar 2010 15:56:51 +0000
Subject: [PATCH] Introduction de _MAX_ART_AFFICHES (pour Paolo de la part de
 Denis).

---
 ecrire/inc/meme_rubrique.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ecrire/inc/meme_rubrique.php b/ecrire/inc/meme_rubrique.php
index d55247f415..8aca7998f1 100644
--- a/ecrire/inc/meme_rubrique.php
+++ b/ecrire/inc/meme_rubrique.php
@@ -25,7 +25,8 @@ function inc_meme_rubrique_dist($id_rubrique, $id, $type, $order='date', $limit=
 		$table = 'spip_articles';
 	}
 	$prim = 'id_' . $type;
-	if (!$limit) $limit = 10;
+	if (!$limit) 
+		$limit = defined("_MAX_ART_AFFICHES") ? _MAX_ART_AFFICHES : 10;
 
 	$titre = ($type!='syndic'?'titre':'nom_site');
 	$exec = array('article'=>'articles','breve'=>'breves_voir','syndic'=>'sites');
-- 
GitLab