Merge pull request #6806 from MrPetovan/bug/6805-restore-module-custom-titles

Restore module custom title display
2022.09-rc
Philipp 2019-03-04 15:16:03 +01:00 zatwierdzone przez GitHub
commit 95f27524ab
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -570,14 +570,14 @@ class App
$interval = 40000;
}
// compose the page title from the sitename and the
// current module called
if (!$this->module == '') {
$this->page['title'] = $this->config->get('config', 'sitename') . ' (' . $this->module . ')';
} else {
$this->page['title'] = $this->config->get('config', 'sitename');
// Default title: current module called
if (empty($this->page['title']) && $this->module) {
$this->page['title'] = ucfirst($this->module);
}
// Prepend the sitename to the 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'];
} else {