aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-10-08 18:23:56 -0400
committerCash Costello <cash.costello@gmail.com>2011-10-08 18:23:56 -0400
commitf7ae8c1440dcb56dc7a2133d46ab50abf80398d8 (patch)
treefed973e812fb6622d1cd963d3bf9945a58120117 /mod
parentc80f32c614e48e237bcc3b72b780badf17d99dca (diff)
downloadelgg-f7ae8c1440dcb56dc7a2133d46ab50abf80398d8.tar.gz
elgg-f7ae8c1440dcb56dc7a2133d46ab50abf80398d8.tar.bz2
fixed bug with variable name in log rotation
Diffstat (limited to 'mod')
-rw-r--r--mod/logrotate/views/default/plugins/logrotate/settings.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/mod/logrotate/views/default/plugins/logrotate/settings.php b/mod/logrotate/views/default/plugins/logrotate/settings.php
index d9c4032fe..bef8b308d 100644
--- a/mod/logrotate/views/default/plugins/logrotate/settings.php
+++ b/mod/logrotate/views/default/plugins/logrotate/settings.php
@@ -6,13 +6,13 @@
*/
$period = $vars['entity']->period;
-$time = $vars['entity']->time;
+$delete = $vars['entity']->delete;
if (!$period) {
$period = 'monthly';
}
-if (!$time) {
- $time = 'monthly';
+if (!$delete) {
+ $delete = 'monthly';
}
?>
<div>
@@ -26,7 +26,7 @@ if (!$time) {
'monthly' => elgg_echo('logrotate:monthly'),
'yearly' => elgg_echo('logrotate:yearly'),
),
- 'value' => $period
+ 'value' => $period,
));
?>
</div>
@@ -41,7 +41,7 @@ if (!$time) {
'monthly' => elgg_echo('logrotate:month'),
'yearly' => elgg_echo('logrotate:year'),
),
- 'value' => $time
+ 'value' => $delete,
));
?>
</div>