Add default value for config.sitename in App::initHead
- Protect $this->page['title'] even more Co-Authored-By: MrPetovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
8fdf1db032
commit
a5d86fe787
|
@ -576,7 +576,7 @@ class App
|
|||
}
|
||||
|
||||
// Prepend the sitename to the page title
|
||||
$this->page['title'] = $this->config->get('config', 'sitename') . ($this->page['title'] ? ' | ' . $this->page['title'] : '');
|
||||
$this->page['title'] = $this->config->get('config', 'sitename', '') . (!empty($this->page['title']) ? ' | ' . $this->page['title'] : '');
|
||||
|
||||
if (!empty(Core\Renderer::$theme['stylesheet'])) {
|
||||
$stylesheet = Core\Renderer::$theme['stylesheet'];
|
||||
|
|
Loading…
Reference in a new issue