aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-10-06 14:59:20 -0400
committerJoey Hess <joey@kitenet.net>2010-10-06 15:00:48 -0400
commitd4fd8cd67dd868ed8b0d51c2d710b834d6a33b05 (patch)
treef1c6e01b37475be73a43c15e99091ae92e65c24b /IkiWiki
parent7988a5aee3be9fe82da1d47d2a72c95eabc7bb6e (diff)
downloadikiwiki-d4fd8cd67dd868ed8b0d51c2d710b834d6a33b05.tar
ikiwiki-d4fd8cd67dd868ed8b0d51c2d710b834d6a33b05.tar.gz
put diff at end of revert form
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/recentchanges.pm3
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;