Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Kevin Morris
aurweb
Commits
e7db894e
Commit
e7db894e
authored
Nov 20, 2020
by
hashworks
Committed by
Kevin Morris
Jun 12, 2021
Browse files
RSS: Add ability to specify isPermaLink="false" for GUID
parent
b32022a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
web/lib/feedcreator.class.php
View file @
e7db894e
...
...
@@ -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
"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment