]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
remove unused editpage title
authorJoey Hess <joey@kodama.kitenet.net>
Tue, 1 Jul 2008 00:33:39 +0000 (20:33 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 1 Jul 2008 00:33:39 +0000 (20:33 -0400)
The title was set to editpage, but then always changed.
And some code tested for this. Remove this dead code.

IkiWiki/CGI.pm
IkiWiki/Plugin/editdiff.pm

index 43986789a45614417f3837cf297c2840acb37455..2c4590babcc7f0e4a81b19c5d10641dad22d9eba 100644 (file)
@@ -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',
index 2a70ca0b81a49c3113e6074bcb797d94e41e133e..b8ecaa3d747c356e1690c197592eaecfd44c1456 100644 (file)
@@ -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};