summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/functions/functions_print_lists.php10
-rw-r--r--modules_v3/recent_changes/module.php13
2 files changed, 4 insertions, 19 deletions
diff --git a/includes/functions/functions_print_lists.php b/includes/functions/functions_print_lists.php
index 7ba7f34bf2..8533124cc9 100644
--- a/includes/functions/functions_print_lists.php
+++ b/includes/functions/functions_print_lists.php
@@ -1438,7 +1438,7 @@ function format_surname_list($surnames, $style, $totals, $type) {
// print a list of recent changes
-function print_changes_list($change_ids, $sort, $show_parents=false) {
+function print_changes_list($change_ids, $sort) {
global $SHOW_MARRIED_NAMES;
$n = 0;
$arr=array();
@@ -1480,9 +1480,6 @@ function print_changes_list($change_ids, $sort, $show_parents=false) {
}
}
}
- if ($show_parents) {
- $return .= $value['record']->getPrimaryParentsNames('details1');
- }
}
$return .= /* I18N: [a record was] Changed on <date/time> by <user> */ WT_I18N::translate('Changed on %1$s by %2$s', $value['record']->LastChangeTimestamp(false), $value['record']->LastChangeUser());
$return .= '</div>';
@@ -1491,7 +1488,7 @@ function print_changes_list($change_ids, $sort, $show_parents=false) {
}
// print a table of recent changes
-function print_changes_table($change_ids, $sort, $show_parents=false) {
+function print_changes_table($change_ids, $sort) {
global $SHOW_MARRIED_NAMES, $TEXT_DIRECTION, $WT_IMAGES, $controller;
$return = '';
@@ -1597,9 +1594,6 @@ function print_changes_table($change_ids, $sort, $show_parents=false) {
}
}
}
- if ($show_parents) {
- $return .= $record->getPrimaryParentsNames("parents_$table_id details1");
- }
$return .= '</div>'; //class='indent'
}
$return .= "</td>";
diff --git a/modules_v3/recent_changes/module.php b/modules_v3/recent_changes/module.php
index 036f1d06c4..0b49c7cd5c 100644
--- a/modules_v3/recent_changes/module.php
+++ b/modules_v3/recent_changes/module.php
@@ -49,7 +49,6 @@ class recent_changes_WT_Module extends WT_Module implements WT_Module_Block {
$days = get_block_setting($block_id, 'days', 7);
$infoStyle = get_block_setting($block_id, 'infoStyle', 'table');
- $show_parents = get_block_setting($block_id, 'show_parents', false);
$sortStyle = get_block_setting($block_id, 'sortStyle', 'date_desc');
$hide_empty = get_block_setting($block_id, 'hide_empty', false);
$block = get_block_setting($block_id, 'block', true);
@@ -83,11 +82,11 @@ class recent_changes_WT_Module extends WT_Module implements WT_Module_Block {
ob_start();
switch ($infoStyle) {
case 'list':
- $content .= print_changes_list($found_facts, $sortStyle, $show_parents);
+ $content .= print_changes_list($found_facts, $sortStyle);
break;
case 'table':
// sortable table
- $content .= print_changes_table($found_facts, $sortStyle, $show_parents);
+ $content .= print_changes_table($found_facts, $sortStyle);
break;
}
$content .= ob_get_clean();
@@ -124,7 +123,6 @@ class recent_changes_WT_Module extends WT_Module implements WT_Module_Block {
if (safe_POST_bool('save')) {
set_block_setting($block_id, 'days', safe_POST_integer('days', 1, 30, 7));
set_block_setting($block_id, 'infoStyle', safe_POST('infoStyle', array('list', 'table'), 'table'));
- set_block_setting($block_id, 'show_parents', safe_POST_bool('show_parents'));
set_block_setting($block_id, 'sortStyle', safe_POST('sortStyle', array('name', 'date_asc', 'date_desc'), 'date_desc'));
set_block_setting($block_id, 'hide_empty', safe_POST_bool('hide_empty'));
set_block_setting($block_id, 'block', safe_POST_bool('block'));
@@ -160,13 +158,6 @@ class recent_changes_WT_Module extends WT_Module implements WT_Module_Block {
), null, $sortStyle, '');
echo '</td></tr>';
- $show_parents = get_block_setting($block_id, 'show_parents', true);
- echo '<tr><td class="descriptionbox wrap width33">';
- echo /* I18N: label for a yes/no option */ WT_I18N::translate('Show parents');
- echo '</td><td class="optionbox">';
- echo edit_field_yes_no('show_parents', $show_parents);
- echo '</td></tr>';
-
$block = get_block_setting($block_id, 'block', true);
echo '<tr><td class="descriptionbox wrap width33">';
echo /* I18N: label for a yes/no option */ WT_I18N::translate('Add a scrollbar when block contents grow');