From 51d392b97f144a7487deb35d8cb7d0946fe9fbc9 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Tue, 1 Dec 2015 14:19:06 +0100 Subject: [PATCH] add the module to the page title --- boot.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/boot.php b/boot.php index d4c5ec093a..fb65eff22c 100644 --- a/boot.php +++ b/boot.php @@ -737,7 +737,14 @@ if(! class_exists('App')) { if($interval < 10000) $interval = 40000; - $this->page['title'] = $this->config['sitename']; + // 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']; + } /* put the head template at the beginning of page['htmlhead'] * since the code added by the modules frequently depends on it