mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Update README.md
revert changes as suggested
This commit is contained in:
parent
3882b01602
commit
7017c1c6f8
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user