X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=boot.php;h=19cfd71a8aad7343b499983c1bb0b39064de9fa1;hb=54085508e5a6d7971158771f60845aa293de1d46;hp=d4c5ec093a0477656ab2ceb4d449f4f9cd4ef6e9;hpb=edb303d44a9109c98bde75ef91b0e40dbe4eeb3b;p=friendica.git diff --git a/boot.php b/boot.php index d4c5ec093a..19cfd71a8a 100644 --- a/boot.php +++ b/boot.php @@ -734,10 +734,22 @@ if(! class_exists('App')) { function init_pagehead() { $interval = ((local_user()) ? get_pconfig(local_user(),'system','update_interval') : 40000); + + // If the update is "deactivated" set it to the highest integer number (~24 days) + if ($interval < 0) + $interval = 2147483647; + 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