diff options
Diffstat (limited to 'mod/logrotate/views/default/settings')
-rw-r--r-- | mod/logrotate/views/default/settings/logrotate/edit.php | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/mod/logrotate/views/default/settings/logrotate/edit.php b/mod/logrotate/views/default/settings/logrotate/edit.php index c73bec52c..206051780 100644 --- a/mod/logrotate/views/default/settings/logrotate/edit.php +++ b/mod/logrotate/views/default/settings/logrotate/edit.php @@ -6,10 +6,14 @@ */ $period = $vars['entity']->period; +$time = $vars['entity']->time; if (!$period) { $period = 'monthly'; } - + +if (!$time) { + $time = 'monthly'; +} ?> <p> <?php echo elgg_echo('logrotate:period'); ?> @@ -25,4 +29,20 @@ if (!$period) { 'value' => $period )); ?> + + <?php echo elgg_echo('<br>'); ?> + + <?php echo elgg_echo('logrotate:date'); ?> + + <?php + echo elgg_view('input/pulldown', array( + 'internalname' => 'params[time]', + 'options_values' => array( + 'weekly' => elgg_echo('logrotate:week'), + 'monthly' => elgg_echo('logrotate:month'), + 'yearly' => elgg_echo('logrotate:year'), + ), + 'value' => $time + )); + ?> </p> |