From e1d9747be167c834c5b1b98331f40dc98fc46c93 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 30 Jun 2008 20:33:39 -0400 Subject: remove unused editpage title The title was set to editpage, but then always changed. And some code tested for this. Remove this dead code. --- IkiWiki/CGI.pm | 1 - IkiWiki/Plugin/editdiff.pm | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index 43986789a..2c4590bab 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -281,7 +281,6 @@ sub cgi_editpage ($$) { #{{{ eval q{use CGI::FormBuilder}; error($@) if $@; my $form = CGI::FormBuilder->new( - title => "editpage", fields => \@fields, charset => "utf-8", method => 'POST', diff --git a/IkiWiki/Plugin/editdiff.pm b/IkiWiki/Plugin/editdiff.pm index 2a70ca0b8..b8ecaa3d7 100644 --- a/IkiWiki/Plugin/editdiff.pm +++ b/IkiWiki/Plugin/editdiff.pm @@ -48,8 +48,7 @@ sub formbuilder_setup { #{{{ my $form=$params{form}; my $page=$form->field("page"); - return if $form->title ne "editpage" - || $form->field("do") ne "edit"; + return if $form->field("do") ne "edit"; $page = IkiWiki::titlepage(IkiWiki::possibly_foolish_untaint($page)); return unless exists $pagesources{$page}; -- cgit v1.2.3