summaryrefslogtreecommitdiff
path: root/includes/functions/functions_print.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-08-29 08:21:13 +0000
committerfisharebest <fisharebest@gmail.com>2010-08-29 08:21:13 +0000
commitf81bdc1d4aaae3ede1b333a453921d165453946d (patch)
tree359756b57bccedccade990df04af10e294a9dac7 /includes/functions/functions_print.php
parentd893748e0c3b6fd20967d5595de155348c406281 (diff)
downloadwebtrees-f81bdc1d4aaae3ede1b333a453921d165453946d.tar.gz
webtrees-f81bdc1d4aaae3ede1b333a453921d165453946d.tar.bz2
webtrees-f81bdc1d4aaae3ede1b333a453921d165453946d.zip
#625984 - Error on personal facts page
Diffstat (limited to 'includes/functions/functions_print.php')
-rw-r--r--includes/functions/functions_print.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/functions/functions_print.php b/includes/functions/functions_print.php
index d774e1d553..4dc64192e0 100644
--- a/includes/functions/functions_print.php
+++ b/includes/functions/functions_print.php
@@ -1943,18 +1943,18 @@ function print_add_new_fact($id, $usedfacts, $type) {
}
$addfacts=array_merge(CheckFactUnique($uniquefacts, $usedfacts, $type), $addfacts);
$quickfacts=array_intersect($quickfacts, $addfacts);
-
+ $translated_addfacts=array();
foreach ($addfacts as $addfact) {
- $tanslated_addfacts[$addfact] = translate_fact($addfact);
+ $translated_addfacts[$addfact] = translate_fact($addfact);
}
- uasort($tanslated_addfacts, "factsort");
+ uasort($translated_addfacts, "factsort");
echo "<tr><td class=\"descriptionbox ", $TEXT_DIRECTION, "\">";
echo i18n::translate('Add new fact');
echo help_link('add_facts'), "</td>\n";
echo "<td class=\"optionbox wrap ", $TEXT_DIRECTION, "\">";
echo "<form method=\"get\" name=\"newfactform\" action=\"\" onsubmit=\"return false;\">";
echo "<select id=\"newfact\" name=\"newfact\">\n";
- foreach($tanslated_addfacts as $fact=>$fact_name) {
+ foreach($translated_addfacts as $fact=>$fact_name) {
echo '<option value="', $fact, '">', i18n::translate('%1$s [%2$s]', $fact_name, $fact), '</option>';
}
if (($type == "INDI") || ($type == "FAM")) echo "<option value=\"EVEN\">", i18n::translate('Custom Event'), " [EVEN]</option>";