Skip to content

Commit 63dbac1

Browse files
authored
Fix document title (#32364)
1 parent c5d8eda commit 63dbac1

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

components/com_content/src/View/Article/HtmlView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ protected function _prepareDocument()
355355
if (!empty($this->item->page_title))
356356
{
357357
$this->item->title = $this->item->title . ' - ' . $this->item->page_title;
358-
$this->document->setTitle(
358+
$this->setDocumentTitle(
359359
$this->item->page_title . ' - ' . Text::sprintf('PLG_CONTENT_PAGEBREAK_PAGE_NUM', $this->state->get('list.offset') + 1)
360360
);
361361
}

components/com_content/src/View/Category/HtmlView.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,6 @@ public function display($tpl = null)
175175

176176
$this->setDocumentTitle($title);
177177

178-
$this->document->setTitle($title);
179-
180178
if ($this->category->metadesc)
181179
{
182180
$this->document->setDescription($this->category->metadesc);

0 commit comments

Comments
 (0)