Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
STYLE: one 's' too many
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Jomier committed Jul 18, 2014
1 parent b64e97a commit 001d98b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/controllers/components/DateComponent.php
Expand Up @@ -54,7 +54,7 @@ public static function ago($timestamp, $only_time = false)
}
}
$difference = time() - $timestamp;
$periods = array("second", "minute", "hour", "day", "week", "month", "years", "decade");
$periods = array("second", "minute", "hour", "day", "week", "month", "year", "decade");
$periodsFr = array("seconde", "minute", "heure", "jour", "semaine", "mois", "annee", "decades");
$lengths = array("60", "60", "24", "7", "4.35", "12", "10");
for($j = 0; $difference >= $lengths[$j]; $j++)
Expand Down Expand Up @@ -105,7 +105,7 @@ public static function duration($timestamp)
}
}
$difference = $timestamp;
$periods = array("second", "minute", "hour", "day", "week", "month", "years", "decade");
$periods = array("second", "minute", "hour", "day", "week", "month", "year", "decade");
$periodsFr = array("seconde", "minute", "heure", "jour", "semaine", "mois", "annee", "decades");
$lengths = array("60", "60", "24", "7", "4.35", "12", "10");
for($j = 0; $difference >= $lengths[$j]; $j++)
Expand Down

0 comments on commit 001d98b

Please sign in to comment.