]> sipb.mit.edu Git - ikiwiki.git/commitdiff
po(formbuilder): stop hunting down non-existent cases
authorintrigeri <intrigeri@boum.org>
Mon, 26 Jan 2009 21:54:40 +0000 (22:54 +0100)
committerintrigeri <intrigeri@boum.org>
Mon, 26 Jan 2009 21:54:40 +0000 (22:54 +0100)
After some thinking about it, I can't find why the type of a page being created
in the CGI could be restricted to po. So the previous case seems enough.

Signed-off-by: intrigeri <intrigeri@boum.org>
IkiWiki/Plugin/po.pm

index 659350ea01d05537481c684fbea4ca244105d875..da5812ebdc9506f1a77a0988438d1d43d99a2936 100644 (file)
@@ -535,11 +535,6 @@ sub formbuilder (@) {
                                my @types = grep { $_ ne 'po' } $field->options;
                                $field->options(\@types) if @types;
                        }
-                       else {
-                               # make sure the default value is not po;
-                               # does this case actually happen?
-                               debug "po(formbuilder) ".gettext("type field is not selected - not implemented yet");
-                       }
                }
        }
 }