Commit e7a4ec55 authored by merlinofchaos's avatar merlinofchaos
Browse files

Fix for empty RSS feeds

parent 3e99b93d
......@@ -1297,10 +1297,9 @@ function theme_views_view($view, $type, $nodes, $level = NULL, $args = NULL) {
$output .= views_theme('views_display_filters', $view);
}
if ($num_nodes) {
$plugins = _views_get_style_plugins();
$view_type = ($type == 'block') ? $view->block_type : $view->page_type;
$plugins = _views_get_style_plugins();
$view_type = ($type == 'block') ? $view->block_type : $view->page_type;
if ($num_nodes || $plugins[$view_type]['even_empty']) {
if ($level !== NULL) {
$output .= "<div class='view-summary view-summary-$view->name'>" . views_theme($plugins[$view_type]['summary_theme'], $view, $type, $level, $nodes, $args) . '</div>';
}
......
......@@ -11,6 +11,7 @@ function views_rss_views_style_plugins() {
'theme' => 'views_rss_feed',
'needs_table_header' => TRUE,
'needs_fields' => TRUE,
'even_empty' => TRUE,
),
);
}
......
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