Merge pull request #2128 from tobiasd/20151201-issue2079

add the module to the page title
This commit is contained in:
fabrixxm 2015-12-01 14:33:25 +01:00
commit 9e0a15c972

View file

@ -737,7 +737,14 @@ if(! class_exists('App')) {
if($interval < 10000) if($interval < 10000)
$interval = 40000; $interval = 40000;
// compose the page title from the sitename and the
// current module called
if (!$this->module=='')
{
$this->page['title'] = $this->config['sitename'].' ('.$this->module.')';
} else {
$this->page['title'] = $this->config['sitename']; $this->page['title'] = $this->config['sitename'];
}
/* put the head template at the beginning of page['htmlhead'] /* put the head template at the beginning of page['htmlhead']
* since the code added by the modules frequently depends on it * since the code added by the modules frequently depends on it