mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
fix links in RSS feeds
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.2.2@52288 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
808f77ec4f
commit
cbd65bd9ef
@ -281,7 +281,7 @@ class RSSFeed_Entry extends ViewableData {
|
||||
*/
|
||||
function AbsoluteLink() {
|
||||
if($this->failover->hasMethod('AbsoluteLink')) return $this->failover->AbsoluteLink();
|
||||
else if($this->failover->hasMethod('Link')) return Director::absoluteURL($this->link);
|
||||
else if($this->failover->hasMethod('Link')) return Director::absoluteURL($this->failover->Link());
|
||||
else user_error($this->failover->class . " object has either an AbsoluteLink nor a Link method. Can't put a link in the RSS feed", E_USER_WARNING);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user