From: pcanterino <> Date: Fri, 10 Dec 2004 14:00:32 +0000 (+0000) Subject: The "Edit" link of files in use were not greyed in directory listing. X-Git-Tag: version_2_3~21 X-Git-Url: https://git.p6c8.net/devedit.git/commitdiff_plain/75c789857e82f326c9f1948f4c04ba266ab511c2?ds=sidebyside The "Edit" link of files in use were not greyed in directory listing. I hope it works properly now... --- 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);