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); }