1
0
Fork 0

Add sitename in page title

This commit is contained in:
fabrixxm 2011-01-03 10:03:21 +01:00
parent 9ebd34b703
commit 8805635293

View file

@ -307,6 +307,7 @@ class App {
} }
function init_pagehead() { function init_pagehead() {
$this->page['title'] = $this->config['sitename'];
$tpl = load_view_file("view/head.tpl"); $tpl = load_view_file("view/head.tpl");
$this->page['htmlhead'] = replace_macros($tpl,array( $this->page['htmlhead'] = replace_macros($tpl,array(
'$baseurl' => $this->get_baseurl() . '/' '$baseurl' => $this->get_baseurl() . '/'
@ -1957,7 +1958,7 @@ function profile_load(&$a, $nickname, $profile = 0) {
$a->profile = $r[0]; $a->profile = $r[0];
$a->page['title'] = $a->profile['name']; $a->page['title'] = $a->profile['name'] . " @ " . $this->config['sitename'];
$_SESSION['theme'] = $a->profile['theme']; $_SESSION['theme'] = $a->profile['theme'];
if(! (x($a->page,'aside'))) if(! (x($a->page,'aside')))