From 189b063d6c97e96c82f5ff77a1da511adf80c592 Mon Sep 17 00:00:00 2001
From: "Committo,Ergo:sum" <esj@rezo.net>
Date: Mon, 2 Nov 2009 12:08:55 +0000
Subject: [PATCH] =?UTF-8?q?D'apr=C3=A8s=20l'Oracle,=20la=20fin=20du=20mond?=
 =?UTF-8?q?e=20aura=20lieu=20avant=20l'an=209999=20puisque=20le=2031=20d?=
 =?UTF-8?q?=C3=A9cembre=20de=20cette=20ann=C3=A9e=20n'existe=20pas.=20Puis?=
 =?UTF-8?q?qu'en=20peut=20donc=20en=20dire=20"Il=20n'y=20a=20plus=20rien",?=
 =?UTF-8?q?=20on=20remplace=20par=20{{dans=20dix=20mille=20ans}},=20pour?=
 =?UTF-8?q?=20f=C3=AAter=20au=20passage=20l'inauguration=20tant=20attendue?=
 =?UTF-8?q?=20d'une=20place=20L=C3=A9o=20Ferr=C3=A9=20=C3=A0=20Paris.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ecrire/public/quete.php | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/ecrire/public/quete.php b/ecrire/public/quete.php
index c2ddbeb758..51a507c4b9 100644
--- a/ecrire/public/quete.php
+++ b/ecrire/public/quete.php
@@ -76,9 +76,10 @@ function quete_profondeur($id, $connect='') {
 // http://doc.spip.org/@quete_date_postdates
 function quete_date_postdates() {
 	return
-		($GLOBALS['meta']['date_prochain_postdate'] > time())
-			? date('Y-m-d H:i:s', $GLOBALS['meta']['date_prochain_postdate'])
-			: '9999-12-31';
+	  date('Y-m-d H:i:s', 
+	       ($GLOBALS['meta']['date_prochain_postdate'] > time())
+			? $GLOBALS['meta']['date_prochain_postdate']
+	       : (time()+(3600*24*10000))) ;
 }
 
 
-- 
GitLab