Skip to content

Commit

Permalink
plxDate::getCalendar() ne retourne jamais L_SUNDAY (jerrywham, P3ter)
Browse files Browse the repository at this point in the history
  • Loading branch information
haruka-7 committed May 4, 2019
1 parent 238c250 commit b15f0a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/lib/class.plx.date.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ class plxDate {
* @param key constante: 'day', 'month' ou 'short_month'
* @param value numero du mois ou du jour
* @return string libellé du mois (long ou court) ou du jour
* @author Stephane F.
* @author Stephane F., Pedro "P3ter" CADETE
**/
public static function getCalendar($key, $value) {
if(!$value) return false;
if(!isset($value)) return false;
$names = array(
'month' => array(
'01' => L_JANUARY,
Expand Down Expand Up @@ -138,6 +138,7 @@ public static function timestamp2Date($timestamp) {
**/
public static function date2Array($date) {

$capture = '';
preg_match('/([0-9]{4})([0-9]{2})([0-9]{2})([0-9:]{2})([0-9:]{2})/',$date,$capture);
return array (
'year' => $capture[1],
Expand Down
1 change: 1 addition & 0 deletions readme/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
[+] #312 En présence d'une homepage statique, le lien "archive total" redirige vers le blog (je-evrard, bazooka07, P3ter)
[+] #312 Remplacement de la fonction str_replace() par strtr() pour les liens vers les pages archives (bazooka07, P3ter)
FIX #302 Renvoie vers index.php si un paramètre est inconnu dans l'URI (bazooka07)
FIX #322 plxDate::getCalendar() ne retourne jamais L_SUNDAY (jerrywham, P3ter)
FIX #323 La fonction plxUtils::printSelect ne fonctione pas avec un "selected" de type numérique (Philippe-M)

## PLUXML 5.7 (sortie : 11/12/2018) ##
Expand Down

0 comments on commit b15f0a6

Please sign in to comment.