Mail Index


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ApacheGallery] (Very) Minor code cleanup



---snip---
--- Gallery.pm.old  Tue Jun  3 03:45:21 2003
+++ Gallery.pm       Tue Jun  3 04:07:18 2003
@@ -235,7 +235,7 @@
                        $tpl->assign(FILES => "No files found");
                }

-               if (-e $topdir . '.comment' && -f $topdir . '.comment')
{
+               if (-f $topdir . '.comment') {
                        my $comment_ref = get_comment($topdir .
'.comment');
                        $tpl->assign(COMMENT => $comment_ref->{COMMENT}
. '<br>') if $comment_ref->{COMMENT};
                        $tpl->assign(TITLE => $comment_ref->{TITLE}) if
$comment_ref->{TITLE};
@@ -412,7 +412,7 @@
                }

                my $foundcomment = 0;
-               if (-e $path . '/' . $picfilename . '.comment' && -f
$path . '/' . $picfilename . '.comment') {
+               if (-f $path . '/' . $picfilename . '.comment') {
                    my $comment_ref = get_comment($path . '/' .
$picfilename . '.comment');
                                $foundcomment = 1;
                    $tpl->assign(COMMENT => $comment_ref->{COMMENT} .
'<br>') if $comment_ref->{COMMENT};
---snip---


... Dennis