Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Sampl committed Feb 21, 2016
1 parent 55a5325 commit d24b641
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion classes/SeoPreview.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ static function getPreviewTitleStatus($objPage)
$rootId = $objPage->trail[0];
$rootPage = self::getRootPage($rootId);
$rootTitle = $rootPage->title;
$title .= ' - '.$rootTitle;

if(!$rootPage->ignoreRootTitle) {
$title .= ' - ' . $rootTitle;
}

$maxLength = $GLOBALS['seoPreview']['titleLength'];
$titleLength = strlen($title);
Expand Down

0 comments on commit d24b641

Please sign in to comment.