diff options
Diffstat (limited to 'modules_v3/recent_changes/module.php')
| -rw-r--r-- | modules_v3/recent_changes/module.php | 13 |
1 files changed, 2 insertions, 11 deletions
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'); |
