summaryrefslogtreecommitdiff
path: root/includes/functions/functions_places.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-07-17 08:38:18 +0000
committerfisharebest <fisharebest@gmail.com>2010-07-17 08:38:18 +0000
commit6c8fe253b24c89f098742b12775c1cd524ac5482 (patch)
tree1788c99a90fa3502aec0712d44d2d4c28f37e303 /includes/functions/functions_places.php
parent22d91a49657fbb1940274ae882f900736b9df866 (diff)
downloadwebtrees-6c8fe253b24c89f098742b12775c1cd524ac5482.tar.gz
webtrees-6c8fe253b24c89f098742b12775c1cd524ac5482.tar.bz2
webtrees-6c8fe253b24c89f098742b12775c1cd524ac5482.zip
Combine WT_THEME_DIR with WT_IMAGES. This reduces repetition, and will allow themes to share common images, e.g. in the images directory.
Diffstat (limited to 'includes/functions/functions_places.php')
-rw-r--r--includes/functions/functions_places.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/includes/functions/functions_places.php b/includes/functions/functions_places.php
index f8f291ecf0..c755f19a21 100644
--- a/includes/functions/functions_places.php
+++ b/includes/functions/functions_places.php
@@ -51,8 +51,7 @@ function get_plac_label() {
}
function setup_place_subfields($element_id) {
- global $WT_PLACES_SETUP;
- global $WT_IMAGE_DIR, $WT_IMAGES;
+ global $WT_PLACES_SETUP, $WT_IMAGES;
if (!empty($WT_PLACES_SETUP)) return;
$WT_PLACES_SETUP = true;
@@ -282,14 +281,14 @@ function setup_place_subfields($element_id) {
* @param string $element_id id of PLAC input element in the form
*/
function print_place_subfields($element_id) {
- global $iso3166, $WT_IMAGE_DIR, $WT_IMAGES;
+ global $iso3166, $WT_IMAGES;
//if ($element_id=="DEAT_PLAC") return; // known bug - waiting for a patch
$plac_label = get_plac_label();
print "<div id='mapdata'></div>";
$cols=40;
- print "&nbsp;<a href=\"javascript:;\" onclick=\"expand_layer('".$element_id."_div'); toggleplace('".$element_id."'); return false;\"><img id=\"".$element_id."_div_img\" src=\"".$WT_IMAGE_DIR."/".$WT_IMAGES["plus"]["other"]."\" border=\"0\" width=\"11\" height=\"11\" alt=\"\" title=\"\" />&nbsp;</a>";
+ print "&nbsp;<a href=\"javascript:;\" onclick=\"expand_layer('".$element_id."_div'); toggleplace('".$element_id."'); return false;\"><img id=\"".$element_id."_div_img\" src=\"".$WT_IMAGES["plus"]["other"]."\" border=\"0\" width=\"11\" height=\"11\" alt=\"\" title=\"\" />&nbsp;</a>";
print "<br /><div id=\"".$element_id."_div\" style=\"display: none; border-width:thin; border-style:none; padding:0px\">\n";
// subtags creation : _0 _1 _2 etc...
$icountry=-1;