]> sipb.mit.edu Git - ikiwiki.git/commitdiff
fix typo
authorJoey Hess <joey@gnu.kitenet.net>
Mon, 14 Dec 2009 23:20:11 +0000 (18:20 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Mon, 14 Dec 2009 23:20:11 +0000 (18:20 -0500)
This was probably not noticed because it only results in a warning, and in
the checkcontent diff having some unchanged lines in it.

IkiWiki.pm

index 3430c57420df18fc02ea6bca88229534d5b59d15..b8e599928678d31ab918cb629da94d95a35b7b1e 100644 (file)
@@ -1407,7 +1407,7 @@ sub check_content (@) {
                my %old=map { $_ => 1 }
                        split("\n", readfile(srcfile($pagesources{$params{page}})));
                foreach my $line (split("\n", $params{content})) {
-                       push @diff, $line if ! exists $old{$_};
+                       push @diff, $line if ! exists $old{$line};
                }
                $params{diff}=join("\n", @diff);
        }