]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
fixed bug with variable name in log rotation
authorCash Costello <cash.costello@gmail.com>
Sat, 8 Oct 2011 22:23:56 +0000 (18:23 -0400)
committerCash Costello <cash.costello@gmail.com>
Sat, 8 Oct 2011 22:23:56 +0000 (18:23 -0400)
mod/logrotate/views/default/plugins/logrotate/settings.php

index d9c4032feb097f5e0fef4ed62f86e1e4a6d0da2f..bef8b308d0d201b56ed493057f8cd8b74770b406 100644 (file)
@@ -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>