Skip to content

Commit

Permalink
Fix head title
Browse files Browse the repository at this point in the history
  • Loading branch information
voltan committed Sep 16, 2016
1 parent cd44a74 commit 7818deb
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/Pi/View/Helper/ThemeAssemble.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,15 @@ public function renderStrategy($module)
$moduleMeta = Pi::registry('module')->read($module);
$headTitleStr = $moduleMeta['title'];
}
if ($headTitleStr && $headTitleStr != $sitename) {
$headTitle->set($headTitleStr);
} else {
$headTitle->set(Pi::config('slogan'));
if ($headTitleStr && $headTitleStr == $sitename) {
$headTitle->setPrefix('');
$headTitle->setPostfix('');
}
if (!empty($slogan)) {
$slogan = $separator . $slogan;
$headTitle->setPostfix($slogan);
}
$headTitle->set($headTitleStr);
}
}

Expand Down

0 comments on commit 7818deb

Please sign in to comment.