comanche: move 'webpage' declaration to the first parser pass so it is set when content loads.

This commit is contained in:
friendica
2015-03-25 15:32:49 -07:00
parent 022305fe83
commit e33da588bd
3 changed files with 11 additions and 10 deletions

View File

@@ -1309,13 +1309,13 @@ function generate_map($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);
return $arr['html'];
return (($arr['html']) ? $arr['html'] : $coord);
}
function generate_named_map($location) {
$arr = array('location' => $location, 'html' => '');
call_hooks('generate_named_map',$arr);
return $arr['html'];
return (($arr['html']) ? $arr['html'] : $location);
}