From 7017c1c6f8c5e879dbcac154549585553b4baa4a Mon Sep 17 00:00:00 2001 From: Martina Lindenhofer <68067510+MLindenhofer@users.noreply.github.com> Date: Fri, 6 Oct 2023 13:30:08 +0200 Subject: [PATCH] Update README.md revert changes as suggested --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index beeafdb..62f68f4 100644 --- a/README.md +++ b/README.md @@ -223,9 +223,9 @@ or by defining the subsiteCMSShowInMenu function in your admin: When using Subsites in combination with Fluent module, the Subsites module sets the i18n locale to the language defined in the current Subsite. When this behaviour is not desired and you need to use the locale in FluentState you can set the current Fluent locale in your PageController like this: *PageController.php* -``` -:::php - protected function init(){ +```php + protected function init() + { if ($this->dataRecord->SubsiteID !== 0){ i18n::set_locale(FluentState::singleton()->getLocale()); }