summaryrefslogtreecommitdiff
path: root/modules/googlemap/places_edit.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2011-02-18 16:00:33 +0000
committerfisharebest <fisharebest@gmail.com>2011-02-18 16:00:33 +0000
commitdcef31930f01f181c00ebcd6d255faa463a3408e (patch)
tree19c33578d79affbe0b9095df8550c7364634c64f /modules/googlemap/places_edit.php
parent69ebca02067def78eb126aee0538fd705bc621f4 (diff)
downloadwebtrees-dcef31930f01f181c00ebcd6d255faa463a3408e.tar.gz
webtrees-dcef31930f01f181c00ebcd6d255faa463a3408e.tar.bz2
webtrees-dcef31930f01f181c00ebcd6d255faa463a3408e.zip
Use constant WT_MODULES_DIR instead of hard-coded references to 'modules/'
Diffstat (limited to 'modules/googlemap/places_edit.php')
-rw-r--r--modules/googlemap/places_edit.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/googlemap/places_edit.php b/modules/googlemap/places_edit.php
index 6a2155a761..11322132fa 100644
--- a/modules/googlemap/places_edit.php
+++ b/modules/googlemap/places_edit.php
@@ -32,7 +32,7 @@ if (!defined('WT_WEBTREES')) {
exit;
}
-require WT_ROOT.'modules/googlemap/defaultconfig.php';
+require WT_ROOT.WT_MODULES_DIR.'googlemap/defaultconfig.php';
require WT_ROOT.'includes/functions/functions_edit.php';
$action=safe_REQUEST($_REQUEST, 'action');
@@ -49,8 +49,8 @@ if (!WT_USER_IS_ADMIN) {
print_simple_footer();
exit;
}
+echo '<link type="text/css" href="', WT_MODULES_DIR, 'googlemap/css/googlemap_style.css" rel="stylesheet" />';
?>
-<link type="text/css" href ="modules/googlemap/css/googlemap_style.css" rel="stylesheet" />
<script type="text/javascript">
<!--
function edit_close(newurl) {
@@ -365,7 +365,7 @@ $api="v3";
<a href="javascript:;" onclick="change_icon();return false;"><?php echo WT_I18N::translate('Change flag'); ?></a>
<?php }
else { ?>
- <img alt="<?php echo /* I18N: The emblem of a country or region */ WT_I18N::translate('Flag'); ?>" src="modules/googlemap/<?php echo $place_icon; ?>"/>&nbsp;&nbsp;
+ <img alt="<?php echo /* I18N: The emblem of a country or region */ WT_I18N::translate('Flag'); ?>" src="<?php echo WT_MODULES_DIR, 'googlemap/', $place_icon; ?>"/>&nbsp;&nbsp;
<a href="javascript:;" onclick="change_icon();return false;"><?php echo WT_I18N::translate('Change flag'); ?></a>&nbsp;&nbsp;
<a href="javascript:;" onclick="remove_icon();return false;"><?php echo WT_I18N::translate('Remove flag'); ?></a>
<?php } ?>