- return $f, ["Revert", "Cancel"];
-}
-
-sub sessioncgi ($$) {
- my ($q, $session) = @_;
- my $do = $q->param('do');
- my $rev = $q->param('rev');
-
- return unless $do eq 'revert' && $rev;
-
- my @changes=$IkiWiki::hooks{rcs}{rcs_preprevert}{call}->($rev);
- IkiWiki::check_canchange(
- cgi => $q,
- session => $session,
- changes => \@changes,
- );
-
- my ($form, $buttons) = confirmation_form($q, $session);