diff options
| author | fisharebest <fisharebest@gmail.com> | 2010-07-17 08:38:18 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2010-07-17 08:38:18 +0000 |
| commit | 6c8fe253b24c89f098742b12775c1cd524ac5482 (patch) | |
| tree | 1788c99a90fa3502aec0712d44d2d4c28f37e303 /modules/yahrzeit | |
| parent | 22d91a49657fbb1940274ae882f900736b9df866 (diff) | |
| download | webtrees-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 'modules/yahrzeit')
| -rw-r--r-- | modules/yahrzeit/module.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/yahrzeit/module.php b/modules/yahrzeit/module.php index 22f0665172..d07201a163 100644 --- a/modules/yahrzeit/module.php +++ b/modules/yahrzeit/module.php @@ -45,7 +45,7 @@ class yahrzeit_WT_Module extends WT_Module implements WT_Module_Block { // Implement class WT_Module_Block public function getBlock($block_id, $template=true) { - global $ctype, $TEXT_DIRECTION, $WT_IMAGE_DIR, $WT_IMAGES, $WT_BLOCKS, $SHOW_MARRIED_NAMES, $THEME_DIR; + global $ctype, $TEXT_DIRECTION, $WT_IMAGES, $WT_BLOCKS, $SHOW_MARRIED_NAMES, $THEME_DIR; $days=get_block_setting($block_id, 'days', 7); $infoStyle=get_block_setting($block_id, 'infoStyle', 'table'); @@ -56,7 +56,7 @@ class yahrzeit_WT_Module extends WT_Module implements WT_Module_Block { $id=$this->getName().$block_id; if ($ctype=='gedcom' && WT_USER_GEDCOM_ADMIN || $ctype=='user' && WT_USER_ID) { - $title="<a href=\"javascript: configure block\" onclick=\"window.open('index_edit.php?action=configure&ctype={$ctype}&block_id={$block_id}', '_blank', 'top=50,left=50,width=600,height=350,scrollbars=1,resizable=1'); return false;\"><img class=\"adminicon\" src=\"$WT_IMAGE_DIR/".$WT_IMAGES["admin"]["small"]."\" width=\"15\" height=\"15\" border=\"0\" alt=\"".i18n::translate('Configure')."\" /></a>"; + $title="<a href=\"javascript: configure block\" onclick=\"window.open('index_edit.php?action=configure&ctype={$ctype}&block_id={$block_id}', '_blank', 'top=50,left=50,width=600,height=350,scrollbars=1,resizable=1'); return false;\"><img class=\"adminicon\" src=\"".$WT_IMAGES["admin"]["small"]."\" width=\"15\" height=\"15\" border=\"0\" alt=\"".i18n::translate('Configure')."\" /></a>"; } else { $title=''; } |
