Error getHeadLinkElement()

Permalink
Hello,

Upgraded to 5.7.5.7 and my site broke. Receiving error:
Call to undefined method Concrete\Core\Page\Feed::getHeadLinkElement()

Any ideas how to correct this without touching the core file?

line 191 of concrete >block > page_list > controller.php has been updated and creates the problem:

Previous function (fixes site):
public function view()
{
$list = $this->list;
$nh = Core::make('helper/navigation');
$this->set('nh', $nh);

if ($this->pfID) {
$this->requireAsset('css', 'font-awesome');
$feed = Feed::getByID($this->pfID);
if (is_object($feed)) {
$this->set('rssUrl', $feed->getFeedURL());
$link = new \HtmlObject\Element('link');
$link->href($feed->getFeedURL());
$link->rel('alternate');
$link->type('application/rss+xml');
$link->title($feed->getTitle());
$this->addHeaderItem($link);
}
}

Updated function (breaks site):
public function view()
{
$list = $this->list;
$nh = Core::make('helper/navigation');
$this->set('nh', $nh);

if ($this->pfID) {
$this->requireAsset('css', 'font-awesome');
$feed = Feed::getByID($this->pfID);
if (is_object($feed)) {
$this->set('rssUrl', $feed->getFeedURL());
$link = $feed->getHeadLinkElement();
$this->addHeaderItem($link);
}
}

 
edstauff replied on at Permalink Reply
I found the fix.

had to add to my custom src > Page > Feed.php

public function getHeadLinkElement()
{
$link = new HeadLink($this->getFeedURL(), 'alternate', 'application/rss+xml');
return $link;
}

}