diff options
author | Joey Hess <joey@kitenet.net> | 2010-05-18 14:16:58 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-05-18 14:16:58 -0400 |
commit | 14de1d87eff9b3a28435103f1efed2cb0972ec3d (patch) | |
tree | a161510ff6ea5e6a43b8c51f7a636977bc847fe4 /IkiWiki/Plugin | |
parent | fa354167bb9addab130e6a89eb845d5bc798c35e (diff) |
Fix a typo in the last release.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/comments.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm index de193bd12..f2cd8f90a 100644 --- a/IkiWiki/Plugin/comments.pm +++ b/IkiWiki/Plugin/comments.pm @@ -914,7 +914,7 @@ sub match_comment ($$;@) { $IkiWiki::pagesources{$page} : $IkiWiki::delpagesources{$page}; my $type=IkiWiki::pagetype($source); - if (defined $type && $type ne "_comment") { + if (! defined $type || $type ne "_comment") { return IkiWiki::FailReason->new("$page is not a comment"); } @@ -929,7 +929,7 @@ sub match_comment_pending ($$;@) { $IkiWiki::pagesources{$page} : $IkiWiki::delpagesources{$page}; my $type=IkiWiki::pagetype($source); - if (defined $type && $type ne "_comment_pending") { + if (! defined $type || $type ne "_comment_pending") { return IkiWiki::FailReason->new("$page is not a pending comment"); } |