more module updates

This commit is contained in:
Bachir Soussi Chiadmi
2015-04-20 18:23:59 +02:00
parent 322dd995bf
commit 6737f9faa1
10 changed files with 112 additions and 31 deletions

View File

@@ -18,7 +18,10 @@ class views_rss_plugin_style_fields extends views_plugin_style {
$url_options['query'] = $input;
}
$url = url($this->view->get_url(NULL, $path), $url_options);
// Don't add arguments to RSS path if the feed does not support arguments.
$feed_path = !empty($this->display->display_options['arguments']) ? $this->view->get_url(NULL, $path) : $path;
$url = url($feed_path, $url_options);
if ($display->has_path() && !$this->options['feed_settings']['feed_in_links']) {
if (empty($this->preview)) {
drupal_add_feed($url, $title);
@@ -347,7 +350,7 @@ class views_rss_plugin_style_fields extends views_plugin_style {
}
return $errors;
}
/**
* Map views row result to an RSS item.
*/