From 18179c35e4f6e70afd131425bdd0f6cce50c8eaa Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Wed, 7 Nov 2018 15:56:41 +0100 Subject: [PATCH] republicandate: fix styling issues in FrenchMonthNames --- republicandate.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/republicandate.php b/republicandate.php index 1957b5b..9c2a652 100644 --- a/republicandate.php +++ b/republicandate.php @@ -115,13 +115,12 @@ function romme_getArray($romme_date_string) { return $rommeArray; } -function FrenchMonthNames($mo) +function FrenchMonthNames($month) { /* The names have been invented by Fabre d'Églantine, a second or rather third rank poet of primarily pastoral poems, with each name referring to the respective period in the agricultural year; e.g. "Vendémiaire" (approx. September) is derived from "vendange" ("harvest"), "Brumaire" (Ocotober/November) from "brume" ("fog") and so on ... */ - - $arMo = array("Vendémiaire", + $monthArray = array("Vendémiaire", "Brumaire", "Frimaire", "Nivôse", @@ -134,9 +133,9 @@ of primarily pastoral poems, with each name referring to the respective period i "Thermidor", "Fructidor", "Sansculottide") ; - if($mo < count($arMo)+1) - return $arMo[$mo-1] ; - + if($month < count($monthArray)+1) { + return $monthArray[$month-1; + } } function FrenchDayNames($Day)