From a160f7c2b99b9b6c717a1375be68695fa186171a Mon Sep 17 00:00:00 2001
From: Cerdic <cedric@yterium.com>
Date: Thu, 24 Apr 2008 14:38:25 +0000
Subject: [PATCH] nom du filtre date_relativecourt pour etre homogene a
 affdate_jourcourt et si il marche c'est encore mieux

---
 ecrire/inc/filtres.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ecrire/inc/filtres.php b/ecrire/inc/filtres.php
index 6e0a3db602..5342da7290 100644
--- a/ecrire/inc/filtres.php
+++ b/ecrire/inc/filtres.php
@@ -822,10 +822,10 @@ function date_relative($date, $decalage_maxi=0) {
 }
 
 
-function date_relative_court($date, $decalage_maxi=0) {
+function date_relativecourt($date, $decalage_maxi=0) {
 	
 	if (!$date) return;
-	$decal = date("U",strtotime(date('Y-m-d'))-strtotime(date('Y-m-d'),strtotime($date)));
+	$decal = date("U",strtotime(date('Y-m-d'))-strtotime(date('Y-m-d',strtotime($date))));
 
 	if ($decalage_maxi AND ($decal > $decalage_maxi OR $decal < 0))
 		return '';
-- 
GitLab