Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix session_store_active functionality #3464

Merged
merged 1 commit into from
Oct 20, 2021

Conversation

nbusseneau
Copy link
Contributor

At the moment and since 1.7.19, the system.languages.session_store_active setting has no effect.

Session must be initialized before URI for $language->setActiveFromUri($uri) (called from $this->initializeUri($config) -> $uri->init()) to properly retrieve / store active_language in Session.

This was previously detected in #3269 as per the code comment, but got reversed in 2e9fe80.

At the moment and since 1.7.19, the `system.languages.session_store_active`
setting has no effect.

Session must be initialized before URI for `$language->setActiveFromUri($uri)`
(called from `$this->initializeUri($config) -> $uri->init()`) to
properly retrieve / store `active_language` in Session.

This was previously detected in getgrav#3269 as per the code comment, but got
reversed in 2e9fe80.
@nbusseneau
Copy link
Contributor Author

@mahagr Revisiting old PRs -- well this one is not that old but I was on a good run 😁

@mahagr mahagr merged commit 08d7ad8 into getgrav:develop Oct 20, 2021
@mahagr
Copy link
Member

mahagr commented Oct 20, 2021

I have no idea why I moved it back -- I think there must be some kind of chicken-egg problem where something breaks in both cases. If that is true, we may need to change the logic a bit more.

mahagr added a commit that referenced this pull request Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants