]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/CGI.pm
web commit by http://jeremie.koenig.myopenid.com/
[git.ikiwiki.info.git] / IkiWiki / CGI.pm
index 144ad2198ca1d4776e219df8a3049b7a4e35e03a..5aa744c9490eaae61c9549afcb0604c36f5e055b 100644 (file)
@@ -138,7 +138,6 @@ sub cgi_signin ($$) { #{{{
        my $form = CGI::FormBuilder->new(
                title => "signin",
                name => "signin",
-               header => 1,
                charset => "utf-8",
                method => 'POST',
                required => 'NONE',
@@ -306,7 +305,6 @@ sub cgi_editpage ($$) { #{{{
        error($@) if $@;
        my $form = CGI::FormBuilder->new(
                fields => \@fields,
-               header => 1,
                charset => "utf-8",
                method => 'POST',
                validate => {
@@ -704,21 +702,6 @@ sub cgi (;$$) { #{{{
        elsif ($do eq 'create' || $do eq 'edit') {
                cgi_editpage($q, $session);
        }
-       elsif ($do eq 'blog') {
-               my $page=decode_utf8($q->param('title'));
-               $page=~s/\///g; # no slashes in blog posts
-               # if the page already exists, munge it to be unique
-               my $from=$q->param('from');
-               my $add="";
-               while (exists $pagecase{lc($from."/".titlepage($page).$add)}) {
-                       $add=1 unless length $add;
-                       $add++;
-               }
-               $q->param('page', $page.$add);
-               # now run same as create
-               $q->param('do', 'create');
-               cgi_editpage($q, $session);
-       }
        elsif ($do eq 'postsignin') {
                error(gettext("login failed, perhaps you need to turn on cookies?"));
        }