]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
return to recentchanges page on form cancel
authorJoey Hess <joey@kitenet.net>
Wed, 6 Oct 2010 19:02:06 +0000 (15:02 -0400)
committerJoey Hess <joey@kitenet.net>
Wed, 6 Oct 2010 19:02:06 +0000 (15:02 -0400)
IkiWiki/Plugin/recentchanges.pm

index 4cd910667495ece04c3913da9ce13d581c10fdc8..439241b936073c4ffe2580fcd2da44b07df133e7 100644 (file)
@@ -115,7 +115,7 @@ sub sessioncgi ($$) {
                        IkiWiki::saveindex();
                }
        }
-       else {
+       elsif ($form->submitted ne 'Cancel') {
                $form->title(sprintf(gettext("confirm reversion of %s"), $rev));
                $form->tmpl_param(diff => encode_entities(scalar IkiWiki::rcs_diff($rev)));
                $form->field(name => "rev", type => "hidden", value => $rev, force => 1);