allow a variety of latitude/longitude delimiters since nobody can agree on them.
This commit is contained in:
parent
538fc739a7
commit
0f0f12a453
@ -1307,7 +1307,9 @@ function format_filer(&$item) {
|
|||||||
|
|
||||||
|
|
||||||
function generate_map($coord) {
|
function generate_map($coord) {
|
||||||
$arr = array('lat' => substr($coord,0,strpos($coord,' ')), 'lon' => substr($coord,strpos($coord,' ')+1), 'html' => '');
|
$coord = trim($coord);
|
||||||
|
$coord = str_replace(array(',','/',' '),array(' ',' ',' '),$coord);
|
||||||
|
$arr = array('lat' => trim(substr($coord,0,strpos($coord,' '))), 'lon' => trim(substr($coord,strpos($coord,' ')+1)), 'html' => '');
|
||||||
call_hooks('generate_map',$arr);
|
call_hooks('generate_map',$arr);
|
||||||
return $arr['html'];
|
return $arr['html'];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user