summaryrefslogtreecommitdiff
path: root/modules/googlemap/places_edit.php
diff options
context:
space:
mode:
authorBrian Holland <windmillway2@gmail.com>2011-01-24 23:19:24 +0000
committerBrian Holland <windmillway2@gmail.com>2011-01-24 23:19:24 +0000
commit1053f783efe60e0e0e7df515b672193ae85b9761 (patch)
tree08ac7789fc8011a5243a06ced04b3ded289f050b /modules/googlemap/places_edit.php
parentc657d2be9a7198f3c6c833a11ec1c7e3101d0d30 (diff)
downloadwebtrees-1053f783efe60e0e0e7df515b672193ae85b9761.tar.gz
webtrees-1053f783efe60e0e0e7df515b672193ae85b9761.tar.bz2
webtrees-1053f783efe60e0e0e7df515b672193ae85b9761.zip
Prevent script timeout when editing geographic place locations
Diffstat (limited to 'modules/googlemap/places_edit.php')
-rw-r--r--modules/googlemap/places_edit.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/googlemap/places_edit.php b/modules/googlemap/places_edit.php
index 20f5aa8278..13f4bfb34a 100644
--- a/modules/googlemap/places_edit.php
+++ b/modules/googlemap/places_edit.php
@@ -484,6 +484,10 @@ if ($action=="add") {
map.setCenter(new GLatLng( <?php echo $place_lati, ", ", $place_long, "), ", $zoomfactor; ?>, G_NORMAL_MAP );
<?php } ?>
+// === Script timeout problem is here. The following code is supressed =============================
+<?php /*
+// =================================================================================================
+
<?php if ($level < 3) { ?>
var childicon = new GIcon();
childicon.image = "http://labs.google.com/ridefinder/images/mm_20_green.png";
@@ -524,6 +528,11 @@ if ($action=="add") {
}
}
}
+
+// =================================================================================================
+*/ ?><?php
+// === end supressed code ==========================================================================
+
if ($show_marker == true) {
if (($place_icon == NULL) || ($place_icon == "")) {
if (($place_lati == null) || ($place_long == null)) { ?>