From 201826ed8225873fc11e57efc0004b65b1df3ec7 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 11 Jun 2024 11:32:25 +1200 Subject: [PATCH] ENH Revert temporary locale fix --- src/Extension/FluentExtension.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/Extension/FluentExtension.php b/src/Extension/FluentExtension.php index 3edd2ced..c0f0fe3f 100644 --- a/src/Extension/FluentExtension.php +++ b/src/Extension/FluentExtension.php @@ -1056,15 +1056,6 @@ public function LocaleInformation($locale = null) $localeObj = Locale::getDefault(); } - if (!$localeObj) { - // There is no default locale, this can happen if no locales have been setup - // This will happen when doing integration unit testing, though can also happen during regular - // website operation - // This temporary Locale is created to prevent a invalid argument exception in - // RecordLocale::__construct() - $localeObj = Locale::create(['Locale' => i18n::get_locale()]); - } - return RecordLocale::create($this->owner, $localeObj); }