Commit 43cd7924 authored by catch's avatar catch
Browse files

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

parent c2ab077c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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.");
  }
}
+1 −1
Original line number Diff line number Diff line
@@ -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);
}

/**