Skip to content
Snippets Groups Projects
Commit ee581070 authored by Brandon Bergren's avatar Brandon Bergren
Browse files

fix [#660516] by gnat: Restore PHP4 compatibility.

parent b67f5a59
No related branches found
No related tags found
No related merge requests found
...@@ -79,13 +79,17 @@ class gmap_plugin_style_gmap extends views_plugin_style { ...@@ -79,13 +79,17 @@ class gmap_plugin_style_gmap extends views_plugin_style {
// Determine fieldname for latitude and longitude fields. // Determine fieldname for latitude and longitude fields.
if ($this->options['datasource'] == 'fields') { if ($this->options['datasource'] == 'fields') {
$lat_field = $this->view->display_handler->get_handler('field', $this->options['latfield'])->field_alias; $lat_fied_obj = $this->view->display_handler->get_handler('field', $this->options['latfield']);
$lon_field = $this->view->display_handler->get_handler('field', $this->options['lonfield'])->field_alias; $lon_field_obj = $this->view->display_handler->get_handler('field', $this->options['lonfield']);
$lat_field = $lat_fied_obj->field_alias;
$lon_field = $lon_field_obj->field_alias;
} }
// Determine fieldname for marker field. // Determine fieldname for marker field.
if ($this->options['markers'] == 'field') { if ($this->options['markers'] == 'field') {
$marker_field = $this->view->display_handler->get_handler('field', $this->options['markerfield'])->field_alias; $marker_field_obj = $this->view->display_handler->get_handler('field', $this->options['markerfield']);
$marker_field = $marker_field_obj->field_alias;
} }
$markername = isset($this->options['markertype']) ? $this->options['markertype'] : 'drupal'; $markername = isset($this->options['markertype']) ? $this->options['markertype'] : 'drupal';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment