diff options
author | Joey Hess <joey@kitenet.net> | 2010-10-06 14:59:20 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-10-06 15:00:48 -0400 |
commit | d4fd8cd67dd868ed8b0d51c2d710b834d6a33b05 (patch) | |
tree | f1c6e01b37475be73a43c15e99091ae92e65c24b /IkiWiki/Plugin | |
parent | 7988a5aee3be9fe82da1d47d2a72c95eabc7bb6e (diff) | |
download | ikiwiki-d4fd8cd67dd868ed8b0d51c2d710b834d6a33b05.tar ikiwiki-d4fd8cd67dd868ed8b0d51c2d710b834d6a33b05.tar.gz |
put diff at end of revert form
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/recentchanges.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/recentchanges.pm b/IkiWiki/Plugin/recentchanges.pm index 948bb1366..4cd910667 100644 --- a/IkiWiki/Plugin/recentchanges.pm +++ b/IkiWiki/Plugin/recentchanges.pm @@ -117,8 +117,7 @@ sub sessioncgi ($$) { } else { $form->title(sprintf(gettext("confirm reversion of %s"), $rev)); - my $patch_contents = IkiWiki::rcs_diff($rev); - $form->tmpl_param(patch_contents => encode_entities($patch_contents)); + $form->tmpl_param(diff => encode_entities(scalar IkiWiki::rcs_diff($rev))); $form->field(name => "rev", type => "hidden", value => $rev, force => 1); IkiWiki::showform($form, $buttons, $session, $q); exit 0; |