From ddb3e92e9c67230c16be7c35576e04b3891118b5 Mon Sep 17 00:00:00 2001 From: "John R. D'Orazio" Date: Fri, 29 Nov 2024 22:38:44 +0100 Subject: [PATCH] locales is now its own prop --- src/LiturgyOfTheDay.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LiturgyOfTheDay.php b/src/LiturgyOfTheDay.php index 378c337..f225be0 100644 --- a/src/LiturgyOfTheDay.php +++ b/src/LiturgyOfTheDay.php @@ -231,7 +231,7 @@ public function __construct() ))[0]; if ($this->NationalCalendar !== 'VA') { // TODO: allow to request a different locale among those that are supported by the requested calendar - $this->Locale = $NationalCalendarMetadata["metadata"]["locales"][0]; + $this->Locale = $NationalCalendarMetadata["locales"][0]; } } @@ -251,7 +251,7 @@ public function __construct() fn($nationalCalendar) => $nationalCalendar['calendar_id'] === $DiocesanCalendarMetadata["nation"] ))[0]; // TODO: allow to request a different locale among those that are supported by the requested calendar - $this->Locale = $NationalCalendarMetadata["metadata"]["locales"][0]; + $this->Locale = $NationalCalendarMetadata["locales"][0]; } if (isset($_GET["timezone"]) && LiturgyOfTheDay::isValidTimezone($_GET["timezone"])) {