Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
43cd7924
Commit
43cd7924
authored
Oct 22, 2012
by
Nathaniel Catchpole
Browse files
Issue
#1784226
by javier_, lucascaro: Fixed Taxonomy feed not working.
parent
c2ab077c
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/modules/taxonomy/lib/Drupal/taxonomy/Tests/RssTest.php
View file @
43cd7924
...
...
@@ -105,5 +105,9 @@ function testTaxonomyRss() {
),
);
$this
->
assertRaw
(
format_xml_elements
(
array
(
$test_element
)),
'Term is displayed when viewing the rss feed.'
);
// Test that the feed page exists for the term.
$this
->
drupalGet
(
"taxonomy/term/
{
$term1
->
tid
}
/feed"
);
$this
->
assertRaw
(
'<rss version="2.0"'
,
"Feed page is RSS."
);
}
}
core/modules/taxonomy/taxonomy.pages.inc
View file @
43cd7924
...
...
@@ -78,7 +78,7 @@ function taxonomy_term_feed(Term $term) {
$channel
[
'description'
]
=
check_markup
(
$term
->
description
,
$term
->
format
,
''
,
TRUE
);
$nids
=
taxonomy_select_nodes
(
$term
->
tid
,
FALSE
,
config
(
'system.rss'
)
->
get
(
'items.limit'
));
node_feed
(
$nids
,
$channel
);
return
node_feed
(
$nids
,
$channel
);
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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