aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-10-06 15:02:06 -0400
committerJoey Hess <joey@kitenet.net>2010-10-06 15:02:06 -0400
commit58a0698d921efe0daa932599515f6b41b2da4044 (patch)
tree6646a4913007857bc9d6f58c27a3ee632bff5e88 /IkiWiki
parentd4fd8cd67dd868ed8b0d51c2d710b834d6a33b05 (diff)
downloadikiwiki-58a0698d921efe0daa932599515f6b41b2da4044.tar
ikiwiki-58a0698d921efe0daa932599515f6b41b2da4044.tar.gz
return to recentchanges page on form cancel
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/recentchanges.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/recentchanges.pm b/IkiWiki/Plugin/recentchanges.pm
index 4cd910667..439241b93 100644
--- a/IkiWiki/Plugin/recentchanges.pm
+++ b/IkiWiki/Plugin/recentchanges.pm
@@ -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);