Skip to content

Commit

Permalink
Fix subject name on Title
Browse files Browse the repository at this point in the history
  • Loading branch information
810 committed Apr 22, 2019
1 parent 7033a92 commit a1168e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/com_kunena/controller/topic/item/display.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,13 @@ protected function before()
$this->userTopic = $this->topic->getUserTopic();
$this->quickReply = $this->topic->isAuthorised('reply') && $this->me->exists() && KunenaConfig::getInstance()->quickreply;

$subject = KunenaHtmlParser::parseBBCode($this->topic->displayField('subject'));
$this->headerText = KunenaHtmlParser::parseBBCode($this->topic->displayField('subject'));

$data = new CMSObject;
$data->{'@context'} = "http://schema.org";
$data->{'@type'} = "DiscussionForumPosting";
$data->{'id'} = Joomla\CMS\Uri\Uri::getInstance()->toString(array('scheme', 'host', 'port')) . $this->topic->getPermaUrl();
$data->{'headline'} = $subject;
$data->{'headline'} = $this->headerText;
$data->{'image'} = $this->docImage();
$data->author = array();
$tmp = new CMSObject;
Expand Down

0 comments on commit a1168e4

Please sign in to comment.