summaryrefslogtreecommitdiff
path: root/modules_v3/googlemap
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2015-01-31 21:31:15 +0000
committerGreg Roach <fisharebest@gmail.com>2015-01-31 21:31:15 +0000
commitd479bd75482b9a2e89c9fcd1eb23e3c236426c79 (patch)
treed1c31e1a27c0bac051f9e5f14b223fa0c982f147 /modules_v3/googlemap
parentdc16644d0c9576ade1c540a5ea3552f6739af49f (diff)
downloadwebtrees-d479bd75482b9a2e89c9fcd1eb23e3c236426c79.tar.gz
webtrees-d479bd75482b9a2e89c9fcd1eb23e3c236426c79.tar.bz2
webtrees-d479bd75482b9a2e89c9fcd1eb23e3c236426c79.zip
No need to access directly
Diffstat (limited to 'modules_v3/googlemap')
-rw-r--r--modules_v3/googlemap/module.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules_v3/googlemap/module.php b/modules_v3/googlemap/module.php
index 4003ddb75c..c8828bd58e 100644
--- a/modules_v3/googlemap/module.php
+++ b/modules_v3/googlemap/module.php
@@ -51,7 +51,7 @@ class googlemap_WT_Module extends WT_Module implements WT_Module_Config, WT_Modu
} catch (PDOException $ex) {
// The schema update scripts should never fail. If they do, there is no clean recovery.
WT_FlashMessages::addMessage($ex->getMessage(), 'danger');
- header('Location: ' . WT_BASE_URL . 'site-unavailable.php');
+ header('Location: ' . WT_SERVER_NAME . WT_SCRIPT_PATH . 'site-unavailable.php');
throw $ex;
}
@@ -4553,7 +4553,7 @@ class googlemap_WT_Module extends WT_Module implements WT_Module_Config, WT_Modu
function delete_place(placeid) {
var answer=confirm('<?php echo WT_I18N::translate('Remove this location?'); ?>');
if (answer == true) {
- window.location = '<?php echo $_SERVER['REQUEST_URI']; ?>&action=DeleteRecord&deleteRecord=' + placeid;
+ window.location = '<?php echo get_query_url(array('action' => 'DeleteRecord')); ?>&action=DeleteRecord&deleteRecord=' + placeid;
}
}
</script>
@@ -4798,7 +4798,7 @@ class googlemap_WT_Module extends WT_Module implements WT_Module_Config, WT_Modu
var imageNum = Math.round(bearing/22.5) % 16;
- var image = new google.maps.MarkerImage('<?php echo WT_BASE_UEL . WT_MODULES_DIR; ?>googlemap/images/panda-icons/panda-' + imageNum + '.png',
+ var image = new google.maps.MarkerImage('<?php echo WT_SCRIPT_PATH . WT_MODULES_DIR; ?>googlemap/images/panda-icons/panda-' + imageNum + '.png',
// This marker is 50 pixels wide by 50 pixels tall.
new google.maps.Size(50, 50),
// The origin for this image is 0,0.