summaryrefslogtreecommitdiff
path: root/includes/config_data.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-04-07 20:05:43 +0000
committerfisharebest <fisharebest@gmail.com>2010-04-07 20:05:43 +0000
commitfb80effcda9ab4ca3d8a216e307fdcb44c587e75 (patch)
treebe5686e9b0baec13a975c68dec2553a01f938035 /includes/config_data.php
parentb8145e5b61a862cf0cbcbd67d6929e67f998300c (diff)
downloadwebtrees-fb80effcda9ab4ca3d8a216e307fdcb44c587e75.tar.gz
webtrees-fb80effcda9ab4ca3d8a216e307fdcb44c587e75.tar.bz2
webtrees-fb80effcda9ab4ca3d8a216e307fdcb44c587e75.zip
I18N: need context-sensitive translations, not language-specific functions
Diffstat (limited to 'includes/config_data.php')
-rw-r--r--includes/config_data.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/config_data.php b/includes/config_data.php
index 2d79176af6..0e46638818 100644
--- a/includes/config_data.php
+++ b/includes/config_data.php
@@ -1417,10 +1417,10 @@ $FACTS_F=array(
function translate_fact($fact, $person=null) {
global $FACTS, $FACTS_M, $FACTS_F;
- if ($person && $person->getSex()=='M' && array_key_exists($fact, $FACTS_M)) {
+ if ($person instanceof Person && $person->getSex()=='M' && array_key_exists($fact, $FACTS_M)) {
return $FACTS_M[$fact];
}
- if ($person && $person->getSex()=='F' && array_key_exists($fact, $FACTS_F)) {
+ if ($person instanceof Person && $person->getSex()=='F' && array_key_exists($fact, $FACTS_F)) {
return $FACTS_M[$fact];
}
if (array_key_exists($fact, $FACTS)) {