brought back checkcontent hook full-content compat.
authorintrigeri <intrigeri@boum.org>
Sun, 8 Mar 2009 15:02:10 +0000 (16:02 +0100)
committerintrigeri <intrigeri@boum.org>
Sun, 8 Mar 2009 15:02:10 +0000 (16:02 +0100)
This modification was initially done in editpage, in commit
a3726968bc13f19f458c372cbd7cf92ae4c6fce5, but was then lost while merging
upstream/master branch.

Signed-off-by: intrigeri <intrigeri@boum.org>
IkiWiki.pm

index f580d1f0d008fea8aec829914d1bdeca4bf5217f..2640f85a28d16a7bfb3b588c6a3b7681c8e13f4a 100644 (file)
@@ -1337,7 +1337,7 @@ sub check_content (@) {
                foreach my $line (split("\n", $params{content})) {
                        push @diff, $line if ! exists $old{$_};
                }
                foreach my $line (split("\n", $params{content})) {
                        push @diff, $line if ! exists $old{$_};
                }
-               $params{content}=join("\n", @diff);
+               $params{diff}=join("\n", @diff);
        }
 
        my $ok;
        }
 
        my $ok;