Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Do not generally remove insert tags from page titles (see #7198)
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Oct 22, 2014
1 parent 7171749 commit 34646bb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
9 changes: 0 additions & 9 deletions contao/models/PageModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -585,15 +585,6 @@ public function loadDetails()

$this->trail = array_reverse($trail);

// Remove insert tags from all titles (see #2853)
$this->title = strip_insert_tags($this->title);
$this->pageTitle = strip_insert_tags($this->pageTitle);
$this->parentTitle = strip_insert_tags($this->parentTitle);
$this->parentPageTitle = strip_insert_tags($this->parentPageTitle);
$this->mainTitle = strip_insert_tags($this->mainTitle);
$this->mainPageTitle = strip_insert_tags($this->mainPageTitle);
$this->rootTitle = strip_insert_tags($this->rootTitle);

// Do not cache protected pages
if ($this->protected)
{
Expand Down
4 changes: 0 additions & 4 deletions contao/modules/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,6 @@ protected function renderNavigation($pid, $level=1, $host=null, $language=null)
$row['isActive'] = false;
}

// Remove insert tags from all titles (see #2853, #7198)
$objSubpages->title = strip_insert_tags($objSubpages->title);
$objSubpages->pageTitle = strip_insert_tags($objSubpages->pageTitle);

$row['subitems'] = $subitems;
$row['class'] = trim($strClass);
$row['title'] = specialchars($objSubpages->title, true);
Expand Down
2 changes: 1 addition & 1 deletion contao/pages/PageRegular.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function generate($objPage, $blnCheckRequest=false)
}

// Assign the title and description
$this->Template->title = $this->replaceInsertTags($objLayout->titleTag); // see #7097
$this->Template->title = strip_insert_tags($this->replaceInsertTags($objLayout->titleTag)); // see #7097
$this->Template->description = str_replace(array("\n", "\r", '"'), array(' ' , '', ''), $objPage->description);

// Body onload and body classes
Expand Down

0 comments on commit 34646bb

Please sign in to comment.