Make sure the title is separated correctly

[MAILPOET-2716]
This commit is contained in:
Pavel Dohnal
2020-04-22 10:10:46 +02:00
committed by Veljko V
parent 67681796a2
commit 32031f66b1

View File

@ -253,6 +253,9 @@ class Pages {
public function setWindowTitle($title, $separator, $separatorLocation = 'right') {
$titleParts = explode(" $separator ", $title);
if (!is_array($titleParts)) {
return $title;
}
if ($separatorLocation === 'right') {
// first part
$titleParts[0] = $this->setPageTitle($titleParts[0]);