Browse Source

add the module to the page title

tags/3.4.3
Tobias Diekershoff 3 years ago
parent
commit
51d392b97f
1 changed files with 8 additions and 1 deletions
  1. 8
    1
      boot.php

+ 8
- 1
boot.php View File

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

Loading…
Cancel
Save