From 75c789857e82f326c9f1948f4c04ba266ab511c2 Mon Sep 17 00:00:00 2001 From: pcanterino <> Date: Fri, 10 Dec 2004 14:00:32 +0000 Subject: [PATCH] The "Edit" link of files in use were not greyed in directory listing. I hope it works properly now... --- modules/Command.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/Command.pm b/modules/Command.pm index f3a7158..d62643d 100644 --- a/modules/Command.pm +++ b/modules/Command.pm @@ -6,7 +6,7 @@ package Command; # Execute Dev-Editor's commands # # Author: Patrick Canterino -# Last modified: 2004-12-06 +# Last modified: 2004-12-10 # use strict; @@ -25,6 +25,8 @@ use HTML::Entities; use Output; use Template; +use Data::Dumper; + my $script = $ENV{'SCRIPT_NAME'}; my $users = eval("getpwuid(0)") && eval("getgrgid(0)"); @@ -174,7 +176,7 @@ sub exec_show($$) $ftpl->parse_if_block("readonly",not -w $phys_path); $ftpl->parse_if_block("viewable",-r $phys_path && -T $phys_path && not $too_large); - $ftpl->parse_if_block("editable",-r $phys_path && -w $phys_path && -T $phys_path && not $too_large && not $in_use); + $ftpl->parse_if_block("editable",(-r $phys_path && -w $phys_path && -T $phys_path && not $too_large) && not $in_use); $ftpl->parse_if_block("in_use",$in_use); $ftpl->parse_if_block("unused",not $in_use); -- 2.34.1