]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/comments.pm
Detect image type from .JPG just like .jpg (etc.).
[git.ikiwiki.info.git] / IkiWiki / Plugin / comments.pm
index 4bf8ae4692acb85426f4e87fd4134824c5c708d9..285013e49175c8651055bb53e34e71e44115699c 100644 (file)
@@ -665,7 +665,7 @@ sub commentmoderation ($$) {
 
                                my $page=IkiWiki::dirname($f);
                                my $file="$config{srcdir}/$f";
 
                                my $page=IkiWiki::dirname($f);
                                my $file="$config{srcdir}/$f";
-                               my $filedir="$config{srcdir}";
+                               my $filedir=$config{srcdir};
                                if (! -e $file) {
                                        # old location
                                        $file="$config{wikistatedir}/comments_pending/".$f;
                                if (! -e $file) {
                                        # old location
                                        $file="$config{wikistatedir}/comments_pending/".$f;