aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-03-25 15:32:49 -0700
committerfriendica <info@friendica.com>2015-03-25 15:32:49 -0700
commite33da588bddad9269aa7ab9cdc8cb1ab49d1e9cd (patch)
tree14cee749e1a32c83df16b4e5d51248714e7aa3ba /include/text.php
parent022305fe8383be238a442efdbd5ba3463d15b7ab (diff)
downloadvolse-hubzilla-e33da588bddad9269aa7ab9cdc8cb1ab49d1e9cd.tar.gz
volse-hubzilla-e33da588bddad9269aa7ab9cdc8cb1ab49d1e9cd.tar.bz2
volse-hubzilla-e33da588bddad9269aa7ab9cdc8cb1ab49d1e9cd.zip
comanche: move 'webpage' declaration to the first parser pass so it is set when content loads.
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/text.php b/include/text.php
index 0aba45d14..75125c606 100644
--- a/include/text.php
+++ b/include/text.php
@@ -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);
}