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

Add Languages::resetFallbackPageExtensions #1276

Merged
merged 1 commit into from
Feb 9, 2017

Conversation

flaviocopes
Copy link
Contributor

Resets the page_extensions value.
Useful to re-initialize the pages and change site language at runtime,
example:

$this->grav['language']->setActive('it');
$this->grav['language']->resetFallbackPageExtensions();
$this->grav['pages']->init();

Resets the page_extensions value.
Useful to re-initialize the pages and change site language at runtime,
example:
```
$this->grav['language']->setActive('it');
$this->grav['language']->resetFallbackPageExtensions();
$this->grav['pages']->init();
```
@flaviocopes
Copy link
Contributor Author

@saxinte
Copy link

saxinte commented Feb 3, 2017

Thanks for that @flaviocopes I hope I will be able to test it ASAP.

@w00fz w00fz merged commit 97fe809 into develop Feb 9, 2017
@rhukster rhukster deleted the feature/reset-fallback-page-extensions branch February 10, 2017 19:03
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.

3 participants