From 0426541acbeb44d240e6dbf7a93f3a104bea61b4 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Mon, 22 Oct 2012 18:00:13 +0200 Subject: Grosse màj : ajout de la configuration + ajouts divers fonctionnalités MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/lib_rss.php | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'lib/lib_rss.php') diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 800bb67c6..0cfecf3f3 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -16,31 +16,31 @@ function timestamptodate ($t, $hour = true) { $annee = date ('Y', $t); switch ($mois) { - case 01: + case 1: $mois = 'janvier'; break; - case 02: + case 2: $mois = 'février'; break; - case 03: + case 3: $mois = 'mars'; break; - case 04: + case 4: $mois = 'avril'; break; - case 05: + case 5: $mois = 'mai'; break; - case 06: + case 6: $mois = 'juin'; break; - case 07: + case 7: $mois = 'juillet'; break; - case 08: + case 8: $mois = 'août'; break; - case 09: + case 9: $mois = 'septembre'; break; case 10: @@ -65,3 +65,6 @@ function timestamptodate ($t, $hour = true) { function sortEntriesByDate ($entry1, $entry2) { return $entry2->date (true) - $entry1->date (true); } +function sortReverseEntriesByDate ($entry1, $entry2) { + return $entry1->date (true) - $entry2->date (true); +} -- cgit v1.2.3