summaryrefslogtreecommitdiff
path: root/placelist.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2013-10-11 21:54:17 +0100
committerGreg Roach <fisharebest@gmail.com>2013-10-11 21:54:17 +0100
commit388bdaef7f38a583466faf3599f1f28781d920a0 (patch)
treee6df94bf1256b0b02b857c6d9a464e7f7ebf6803 /placelist.php
parentb1a18bf106daa7a1aab93f2817ee0a7c27dcd2b8 (diff)
downloadwebtrees-388bdaef7f38a583466faf3599f1f28781d920a0.tar.gz
webtrees-388bdaef7f38a583466faf3599f1f28781d920a0.tar.bz2
webtrees-388bdaef7f38a583466faf3599f1f28781d920a0.zip
#1238589 - Place hierarchy list Google Map - Missing markers - Dev
Diffstat (limited to 'placelist.php')
-rw-r--r--placelist.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/placelist.php b/placelist.php
index aebc99946e..2d540f493c 100644
--- a/placelist.php
+++ b/placelist.php
@@ -114,7 +114,6 @@ case 'hierarchy':
if ($use_googlemap) {
$linklevels='';
$placelevels='';
- $place_names=array();
for ($j=0; $j<$level; $j++) {
$linklevels .= '&amp;parent['.$j.']='.rawurlencode($parent[$j]);
if ($parent[$j]=='') {
@@ -149,7 +148,6 @@ case 'hierarchy':
echo '<li><a href="', $child_place->getURL(), '" class="list_item">', $child_place->getPlaceName(), '</a></li>';
if ($use_googlemap) {
- $place_names[$n]=$child_place->getPlaceName();
}
$n++;
if ($numfound > 20) {
@@ -241,9 +239,9 @@ case 'hierarchy':
if ($use_googlemap) {
echo '<link type="text/css" href="', WT_STATIC_URL, WT_MODULES_DIR, 'googlemap/css/wt_v3_googlemap.css" rel="stylesheet">';
- map_scripts($numfound, $level, $parent, $linklevels, $placelevels, $place_names);
+ map_scripts($numfound, $level, $parent, $linklevels, $placelevels, explode(', ', $child_place->getGedcomName()));
}
break;
}
-echo '</div>'; // <div id="place-hierarchy"> \ No newline at end of file
+echo '</div>'; // <div id="place-hierarchy">