summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcatch2012-10-22 12:12:22 (GMT)
committercatch2012-10-22 12:12:22 (GMT)
commit43cd79241ef76580938e5e1e5c5d83682f79dbae (patch)
tree0837e8614cb205b34e251da2f07c7dda14851bb1
parentc2ab077c788879898ab13f291f90d5deee521ad7 (diff)
Issue #1784226 by javier_, lucascaro: Fixed Taxonomy feed not working.
-rw-r--r--core/modules/taxonomy/lib/Drupal/taxonomy/Tests/RssTest.php4
-rw-r--r--core/modules/taxonomy/taxonomy.pages.inc2
2 files changed, 5 insertions, 1 deletions
diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/RssTest.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/RssTest.php
index 79998b6..e87d931 100644
--- a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/RssTest.php
+++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/RssTest.php
@@ -105,5 +105,9 @@ class RssTest extends TaxonomyTestBase {
),
);
$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.");
}
}
diff --git a/core/modules/taxonomy/taxonomy.pages.inc b/core/modules/taxonomy/taxonomy.pages.inc
index f1ec8ea..fe29aaf 100644
--- a/core/modules/taxonomy/taxonomy.pages.inc
+++ b/core/modules/taxonomy/taxonomy.pages.inc
@@ -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);
}
/**