]> git.mxchange.org Git - friendica.git/commitdiff
add the module to the page title
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 1 Dec 2015 13:19:06 +0000 (14:19 +0100)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 1 Dec 2015 13:19:06 +0000 (14:19 +0100)
boot.php

index d4c5ec093a0477656ab2ceb4d449f4f9cd4ef6e9..fb65eff22c8e4503de21ccdcf2453b2a95671ac9 100644 (file)
--- 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