summaryrefslogtreecommitdiff
path: root/calendar.php
diff options
context:
space:
mode:
Diffstat (limited to 'calendar.php')
-rw-r--r--calendar.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/calendar.php b/calendar.php
index f6d42ae0dc..b49e57fb3e 100644
--- a/calendar.php
+++ b/calendar.php
@@ -350,14 +350,7 @@ if ($view === 'year') {
}
echo '</td><td class="topbottombar width50">';
$n = 0;
-foreach (array(
- 'gregorian' => GregorianDate::calendarName(),
- 'julian' => JulianDate::calendarName(),
- 'jewish' => JewishDate::calendarName(),
- 'french' => FrenchDate::calendarName(),
- 'hijri' => HijriDate::calendarName(),
- 'jalali' => JalaliDate::calendarName(),
-) as $newcal => $cal_name) {
+foreach (Date::calendarNames() as $newcal => $cal_name) {
$tmp = $cal_date->convertToCalendar($newcal);
if ($tmp->inValidRange()) {
if ($n++) {