From: pcanterino <> Date: Fri, 15 Apr 2005 20:08:22 +0000 (+0000) Subject: Small cleanup X-Git-Tag: version_3_0~41 X-Git-Url: https://git.p6c8.net/devedit.git/commitdiff_plain/7526dfcc57f8e86a90878078eacaf729072db49a?ds=sidebyside Small cleanup --- 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'}); }