summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-06-13 10:18:30 +0000
committerfisharebest <fisharebest@gmail.com>2010-06-13 10:18:30 +0000
commit42de24416dd2d821dcc1b7621d11c5bb141ece08 (patch)
treea21da5135d88a4229b014c3dfdcf0578366a4efa /modules
parentd56c932467e34b1f860f8349d352b4185b1e4a09 (diff)
downloadwebtrees-42de24416dd2d821dcc1b7621d11c5bb141ece08.tar.gz
webtrees-42de24416dd2d821dcc1b7621d11c5bb141ece08.tar.bz2
webtrees-42de24416dd2d821dcc1b7621d11c5bb141ece08.zip
Minor tidy up.
Diffstat (limited to 'modules')
-rw-r--r--modules/relatives/module.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/relatives/module.php b/modules/relatives/module.php
index f7b03939fa..755108079e 100644
--- a/modules/relatives/module.php
+++ b/modules/relatives/module.php
@@ -301,13 +301,11 @@ class relatives_WT_Module extends WT_Module implements WT_Module_Tab {
}
if (isset($family) && !$this->controller->isPrintPreview() && $this->controller->canedit) {
if ($type == "spouse") {
- $action = "add_son_daughter";
$child_u = i18n::translate('Add a son or daughter');
$child_m = i18n::translate('Son');
$child_f = i18n::translate('Daughter');
}
else {
- $action = "add_sibling";
$child_u = i18n::translate('Add a brother or sister');
$child_m = i18n::translate('Brother');
$child_f = i18n::translate('Sister');
@@ -325,7 +323,13 @@ class relatives_WT_Module extends WT_Module implements WT_Module_Tab {
<a href="javascript:;" onclick="return addnewchild('<?php print $family->getXref(); ?>','M');"><?php echo Person::sexImage('M', 'small', '', $child_m); ?></a>
<a href="javascript:;" onclick="return addnewchild('<?php print $family->getXref(); ?>','F');"><?php echo Person::sexImage('F', 'small', '', $child_f); ?></a>
</span>
- <?php echo help_link($action); ?>
+ <?php
+ if ($type=='spouse') {
+ echo help_link('add_son_daughter');
+ } else {
+ echo help_link('add_sibling');
+ }
+ ?>
</td>
</tr>
<?php