From 237437613ba87af17bf2343539e5b1073d79d10e Mon Sep 17 00:00:00 2001 From: pcanterino <> Date: Fri, 21 Jan 2005 14:00:03 +0000 Subject: [PATCH] Parse the {IF} block "gmt" only once --- modules/Command.pm | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/modules/Command.pm b/modules/Command.pm index e06d0b6..2d46cc8 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: 2005-01-20 +# Last modified: 2005-01-21 # use strict; @@ -128,8 +128,6 @@ sub exec_show($$) $udtpl->fillin('UPPER_DIR',$upper_path); $udtpl->fillin('DATE',encode_entities(strftime($config->{'timeformat'},localtime($stat[9])))); - $udtpl->parse_if_block('gmt',$config->{'use_gmt'}); - $dirlist .= $udtpl->get_template; } @@ -155,8 +153,6 @@ sub exec_show($$) $dtpl->parse_if_block('readable',-r $phys_path && -x $phys_path); $dtpl->parse_if_block('users',$users && -o $phys_path); - $dtpl->parse_if_block('gmt',$config->{'use_gmt'}); - $dirlist .= $dtpl->get_template; } @@ -194,8 +190,6 @@ sub exec_show($$) $ftpl->parse_if_block('too_large',$config->{'max_file_size'} && $stat[7] > $config->{'max_file_size'}); - $ftpl->parse_if_block('gmt',$config->{'use_gmt'}); - $ftpl->parse_if_block('users',$users && -o $phys_path); $dirlist .= $ftpl->get_template; @@ -213,6 +207,7 @@ sub exec_show($$) $tpl->parse_if_block('dir_writeable',$dir_writeable); $tpl->parse_if_block('filter',$filter2); + $tpl->parse_if_block('gmt',$config->{'use_gmt'}); } else { -- 2.34.1