aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/recentchanges.pm
diff options
context:
space:
mode:
authorPeter Gammie <peteg42@gmail.com>2010-10-01 14:06:00 +1000
committerPeter Gammie <peteg42@gmail.com>2010-10-01 14:06:00 +1000
commit8024a2636feb60026a79715430a66bb572b9eae8 (patch)
treeeee94edbac8195dfb2ebe269cd2d94c0a67814c9 /IkiWiki/Plugin/recentchanges.pm
parenteba5c715144024f4784538af256ffa9d7fcb8a2d (diff)
downloadikiwiki-8024a2636feb60026a79715430a66bb572b9eae8.tar
ikiwiki-8024a2636feb60026a79715430a66bb572b9eae8.tar.gz
Complete rcs_preprevert and lightly test.
Diffstat (limited to 'IkiWiki/Plugin/recentchanges.pm')
-rw-r--r--IkiWiki/Plugin/recentchanges.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/recentchanges.pm b/IkiWiki/Plugin/recentchanges.pm
index 79d175328..4a8d1bf80 100644
--- a/IkiWiki/Plugin/recentchanges.pm
+++ b/IkiWiki/Plugin/recentchanges.pm
@@ -92,8 +92,7 @@ sub sessioncgi ($$) {
return unless $do eq 'revert' && $rev;
- # FIXME rcs_preprevert ??
- IkiWiki::check_canedit('FIXME', $q, $session);
+ IkiWiki::rcs_preprevert(cgi => $q, session => $session, rev => $rev);
my ($form, $buttons) = confirmation_form($q, $session);
IkiWiki::decode_form_utf8($form);
@@ -117,7 +116,7 @@ sub sessioncgi ($$) {
}
} else {
$form->title(sprintf(gettext("confirm reversion of %s"), $rev));
- my $patch_contents = IkiWiki::rcs_showpatch($rev);
+ my $patch_contents = IkiWiki::rcs_showpatch(rev => $rev);
$form->tmpl_param(patch_contents => encode_entities($patch_contents));
$form->field(name => "rev", type => "hidden", value => $rev, force => 1);
IkiWiki::showform($form, $buttons, $session, $q);