Global language get ignored

If a page has no language configured, the global language setting get ignored.
This commit is contained in:
Tim Gerundt 2018-10-15 08:53:51 +02:00 committed by Stéphane Goetz
parent b60772ac72
commit c8232b612d
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class Template
if (isset($this->engine->getData('page')['page'])) {
$page = $this->engine->getData('page');
if (is_array($page['page'])) {
if (!empty($page['page']['language'])) {
$language = $page['page']['language'];
}
}