--- location_handler_argument_location_proximity.inc.org 2010-06-09 12:11:21.000000000 +0100 +++ location_handler_argument_location_proximity.inc 2010-06-09 12:27:54.000000000 +0100 @@ -37,7 +37,7 @@ class location_handler_argument_location '#type' => 'textfield', '#size' => 3, '#default_value' => $this->options['separator'], - '#description' => t('Separator for coordinates and distance. Must not occur in the postal code.'), + '#description' => t('Separator between coordinates/postcode and distance. Must not occur in the postal code.'), '#required' => TRUE, ); @@ -124,7 +124,7 @@ class location_handler_argument_location if ($this->options['type'] == 'postal') { foreach ($this->view->argument as $argument) { if ($argument->field == 'distance') { - $argus = split($this->options['separator'], $this->view->args[$argument->position]); + $argus = explode($this->options['separator'], $this->view->args[$argument->position]); if (count($argus) == 3) { $this->value['country'] = drupal_strtolower($argus[0]); $this->value['postal_code'] = $argus[1]; @@ -141,8 +141,8 @@ class location_handler_argument_location else if ($this->options['type'] == 'latlon') { foreach ($this->view->argument as $argument) { if ($argument->field == 'distance') { - list($coords, $this->value['search_distance']) = split($this->options['separator'], $this->view->args[$argument->position]); - list($this->value['latitude'], $this->value['longitude']) = split(',', $coords); + list($coords, $this->value['search_distance']) = explode($this->options['separator'], $this->view->args[$argument->position]); + list($this->value['latitude'], $this->value['longitude']) = explode(',', $coords); break; } } @@ -166,7 +166,7 @@ class location_handler_argument_location // search_distance if ($this->options['search_units'] == 'dd') { - list($lat_distance, $lon_distance) = split(',', $this->value['search_distance']); + list($lat_distance, $lon_distance) = explode(',', $this->value['search_distance']); $latrange[0] = $lat - $lat_distance; $latrange[1] = $lat + $lat_distance; $lonrange[0] = $lon - $lon_distance;