mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
RSS: Add ability to specify isPermaLink="false" for GUID
This commit is contained in:
parent
b32022a176
commit
e7db894eb7
1 changed files with 6 additions and 2 deletions
|
@ -183,7 +183,7 @@ class FeedItem extends HtmlDescribable {
|
|||
/**
|
||||
* Optional attributes of an item.
|
||||
*/
|
||||
var $author, $authorEmail, $image, $category, $comments, $guid, $source, $creator;
|
||||
var $author, $authorEmail, $image, $category, $comments, $guid, $guidIsPermaLink, $source, $creator;
|
||||
|
||||
/**
|
||||
* Publishing date of an item. May be in one of the following formats:
|
||||
|
@ -995,7 +995,11 @@ class RSSCreator091 extends FeedCreator {
|
|||
$feed.= " <pubDate>".htmlspecialchars($itemDate->rfc822())."</pubDate>\n";
|
||||
}
|
||||
if ($this->items[$i]->guid!="") {
|
||||
$feed.= " <guid>".htmlspecialchars($this->items[$i]->guid)."</guid>\n";
|
||||
$feed.= " <guid";
|
||||
if ($this->items[$i]->guidIsPermaLink == false) {
|
||||
$feed.= " isPermaLink=\"false\"";
|
||||
}
|
||||
$feed.= ">".htmlspecialchars($this->items[$i]->guid)."</guid>\n";
|
||||
}
|
||||
$feed.= $this->_createAdditionalElements($this->items[$i]->additionalElements, " ");
|
||||
$feed.= " </item>\n";
|
||||
|
|
Loading…
Add table
Reference in a new issue