diff --git a/application/libraries/Ilch/Layout/Helper/Title/Model.php b/application/libraries/Ilch/Layout/Helper/Title/Model.php index b3aff35c5..3697ed316 100644 --- a/application/libraries/Ilch/Layout/Helper/Title/Model.php +++ b/application/libraries/Ilch/Layout/Helper/Title/Model.php @@ -41,14 +41,14 @@ public function __toString(): string return $config->get('page_title'); } - $separator = $config->get('page_title_moduldata_separator') ?? ' | '; + $separator = $config->get('page_title_moduledata_separator') ?? ' | '; - if ((bool)($config->get('page_title_moduldata_order') ?? '0')) { + if ((bool)($config->get('page_title_moduledata_order') ?? '0')) { krsort($this->data); } else { ksort($this->data); } - return str_replace(['%%title%%', '%%moduldata%%'], [$config->get('page_title'), implode($separator, $this->data)], $config->get('page_title_order') ?? '%%moduldata%% | %%title%%'); + return str_replace(['%%title%%', '%%moduledata%%'], [$config->get('page_title'), implode($separator, $this->data)], $config->get('page_title_order') ?? '%%moduledata%% | %%title%%'); } } diff --git a/index.php b/index.php index 8425ac595..618e9827d 100644 --- a/index.php +++ b/index.php @@ -31,7 +31,7 @@ $serverTimeZone = @date_default_timezone_get(); date_default_timezone_set('UTC'); -define('VERSION', '2.1.56'); +define('VERSION', '2.1.57'); define('SERVER_TIMEZONE', $serverTimeZone); define('DEFAULT_MODULE', 'page'); define('DEFAULT_LAYOUT', 'index');