Issue #1018850: Followup to update Views integrations in Views 2 6.x-3.10
authorNathan Haug
Thu, 28 Apr 2011 04:34:20 +0000 (22:34 -0600)
committerNathan Haug
Thu, 28 Apr 2011 04:34:20 +0000 (22:34 -0600)
compatible approach.

views/filefield_handler_field_data.inc
views/filefield_handler_field_icon.inc

index 608914c..428804d 100644 (file)
@@ -48,8 +48,7 @@ class filefield_handler_field_data extends views_handler_field_node {
     // Copied from views_handler_field_node(). We just remove the call to
     // sanitize_value() from the original call, becaue our value has already
     // been cleaned by filefield_data_value().
-    $value = $this->get_value($values);
-    return $this->render_link($value, $values);
+    return $this->render_link($values->{$this->field_alias}, $values);
   }
 
 }
index cecea83..faa5faf 100644 (file)
@@ -13,12 +13,11 @@ class filefield_handler_field_icon extends views_handler_field {
   }
 
   function render($values) {
-    $value = $this->get_value($values);
     $pseudo_file = array(
-      'fid' => $this->get_value($values, 'fid'),
-      'filemime' => $value,
-      'filename' => $this->get_value($values, 'filename'),
-      'filesize' => $this->get_value($values, 'filesize'),
+      'fid' => $values->{$this->aliases['fid']},
+      'filemime' => $values->{$this->field_alias},
+      'filename' => $values->{$this->aliases['filename']},
+      'filesize' => $values->{$this->aliases['filesize']},
     );
     return theme('filefield_icon', $pseudo_file);
   }