From c0e938e972dee09c2e70c0a8e57351ec85e69c14 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 14 Dec 2009 18:20:11 -0500 Subject: [PATCH] fix typo 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IkiWiki.pm b/IkiWiki.pm index 3430c5742..b8e599928 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -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); } -- 2.26.2