From: Joey Hess <joey@gnu.kitenet.net>
Date: Mon, 14 Dec 2009 23:20:11 +0000 (-0500)
Subject: fix typo
X-Git-Tag: 3.20091218~3
X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c0e938e972dee09c2e70c0a8e57351ec85e69c14;p=ikiwiki.git

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.
---

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);
 	}