diff options
| author | Greg Roach <fisharebest@gmail.com> | 2014-01-27 22:18:55 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2014-01-27 22:18:55 +0000 |
| commit | 13c9856ca7946c5cb5a5777a6430d3329c33e74e (patch) | |
| tree | 9ad249f0120ed166d14214567171b4e754df78b7 | |
| parent | 528693c351dc7cb00ef1e45b949ab2ff768922bc (diff) | |
| download | webtrees-13c9856ca7946c5cb5a5777a6430d3329c33e74e.tar.gz webtrees-13c9856ca7946c5cb5a5777a6430d3329c33e74e.tar.bz2 webtrees-13c9856ca7946c5cb5a5777a6430d3329c33e74e.zip | |
Extend the definition of recent from 30 to 90 days
| -rw-r--r-- | modules_v3/recent_changes/module.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules_v3/recent_changes/module.php b/modules_v3/recent_changes/module.php index 50666451a3..c1f030f282 100644 --- a/modules_v3/recent_changes/module.php +++ b/modules_v3/recent_changes/module.php @@ -28,6 +28,7 @@ if (!defined('WT_WEBTREES')) { } class recent_changes_WT_Module extends WT_Module implements WT_Module_Block { + const MAX_DAYS = 90; // Extend class WT_Module public function getTitle() { @@ -119,7 +120,7 @@ class recent_changes_WT_Module extends WT_Module implements WT_Module_Block { // Implement class WT_Module_Block public function configureBlock($block_id) { if (WT_Filter::postBool('save') && WT_Filter::checkCsrf()) { - set_block_setting($block_id, 'days', WT_Filter::postInteger('days', 1, 30, 7)); + set_block_setting($block_id, 'days', WT_Filter::postInteger('days', 1, self::MAX_DAYS, 7)); set_block_setting($block_id, 'infoStyle', WT_Filter::post('infoStyle', 'list|table', 'table')); set_block_setting($block_id, 'sortStyle', WT_Filter::post('sortStyle', 'name|date_asc|date_desc', 'date_desc')); set_block_setting($block_id, 'hide_empty', WT_Filter::postBool('hide_empty')); @@ -134,7 +135,7 @@ class recent_changes_WT_Module extends WT_Module implements WT_Module_Block { echo WT_I18N::translate('Number of days to show'); echo '</td><td class="optionbox">'; echo '<input type="text" name="days" size="2" value="', $days, '">'; - echo ' <em>', WT_I18N::plural('maximum %d day', 'maximum %d days', 30, 30), '</em>'; + echo ' <em>', WT_I18N::plural('maximum %d day', 'maximum %d days', self::MAX_DAYS, self::MAX_DAYS), '</em>'; echo '</td></tr>'; $infoStyle = get_block_setting($block_id, 'infoStyle', 'table'); |
