Update README.md

revert changes as suggested
This commit is contained in:
Martina Lindenhofer 2023-10-06 13:30:08 +02:00 committed by GitHub
parent 3882b01602
commit 7017c1c6f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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