Fix: Site title when bundle has no section
This commit is contained in:
parent
824f4335fb
commit
b3fc3d1890
|
@ -123,7 +123,14 @@ public function getArticleTitle(): string
|
|||
|
||||
public function getSiteTitle(): string
|
||||
{
|
||||
return $this->getArticleTitle() . ' - ' . $this->getSection()->getArticleTitle();
|
||||
$title = $this->getArticleTitle();
|
||||
$section = $this->getSection();
|
||||
|
||||
if (!empty($section)) {
|
||||
$title .= ' - ' . $section->getArticleTitle();
|
||||
}
|
||||
|
||||
return $title;
|
||||
}
|
||||
|
||||
public function render()
|
||||
|
|
Loading…
Reference in New Issue
Block a user