Commit 43cd7924 authored by catch's avatar catch

Issue #1784226 by javier_, lucascaro: Fixed Taxonomy feed not working.

parent c2ab077c
......@@ -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.");
}
}
......@@ -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);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment