X-Git-Url: https://git.p6c8.net/devedit.git/blobdiff_plain/de22130f2d0192f163366364987731ce4d51ca0e..7526dfcc57f8e86a90878078eacaf729072db49a:/modules/Command.pm?ds=sidebyside 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'}); }