From: Hypolite Petovan Date: Mon, 4 Mar 2019 11:47:40 +0000 (-0500) Subject: Restore module custom title display X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8fdf1db0329ae1d444b3c89f36c068ad2c33eb24;p=friendica.git Restore module custom title display --- diff --git a/src/App.php b/src/App.php index 6945dc459d..cfb04efcd7 100644 --- a/src/App.php +++ b/src/App.php @@ -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') . ($this->page['title'] ? ' | ' . $this->page['title'] : ''); + if (!empty(Core\Renderer::$theme['stylesheet'])) { $stylesheet = Core\Renderer::$theme['stylesheet']; } else {