summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.18/sites/all/modules/views/modules/node/views_handler_field_node_revision.inc
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.18/sites/all/modules/views/modules/node/views_handler_field_node_revision.inc')
-rw-r--r--kolab.org/www/drupal-7.18/sites/all/modules/views/modules/node/views_handler_field_node_revision.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/kolab.org/www/drupal-7.18/sites/all/modules/views/modules/node/views_handler_field_node_revision.inc b/kolab.org/www/drupal-7.18/sites/all/modules/views/modules/node/views_handler_field_node_revision.inc
index c04693a..d29b070 100644
--- a/kolab.org/www/drupal-7.18/sites/all/modules/views/modules/node/views_handler_field_node_revision.inc
+++ b/kolab.org/www/drupal-7.18/sites/all/modules/views/modules/node/views_handler_field_node_revision.inc
@@ -54,7 +54,10 @@ class views_handler_field_node_revision extends views_handler_field_node {
$this->options['alter']['make_link'] = TRUE;
$nid = $this->get_value($values, 'nid');
$vid = $this->get_value($values, 'vid');
- $this->options['alter']['path'] = "node/" . $nid . '/revisions/' . $vid . '/view';
+ $this->options['alter']['path'] = 'node/' . $nid;
+ if ($nid != $vid) {
+ $this->options['alter']['path'] .= "/revisions/$vid/view";
+ }
if (module_exists('translation')) {
$language = $this->get_value($values, 'language');
$languages = language_list();