From 7526dfcc57f8e86a90878078eacaf729072db49a Mon Sep 17 00:00:00 2001 From: pcanterino <> Date: Fri, 15 Apr 2005 20:08:22 +0000 Subject: [PATCH] Small cleanup --- modules/Command.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/Command.pm b/modules/Command.pm index 5132a17..9e11f16 100644 --- a/modules/Command.pm +++ b/modules/Command.pm @@ -107,8 +107,6 @@ sub exec_show($$) my $files = $direntries->{'files'}; my $dirs = $direntries->{'dirs'}; - my $dir_writeable = -w $physical; - my $dirlist = ''; my $filter1 = $data->{'cgi'}->param('filter') || '*'; # The real wildcard @@ -203,7 +201,7 @@ sub exec_show($$) $tpl->fillin('FILTER_URL',escape($filter2)); $tpl->parse_if_block('empty',$dirlist eq ''); - $tpl->parse_if_block('dir_writeable',$dir_writeable); + $tpl->parse_if_block('dir_writeable',-w $physical); $tpl->parse_if_block('filter',$filter2); $tpl->parse_if_block('gmt',$config->{'use_gmt'}); } -- 2.34.1