allow misctemplate callers to pass params to suppress actions etc
[ikiwiki.git] / IkiWiki / Plugin / search.pm
index a9089620b7511948dcc5fd35e4a04c4f7245a31b..ff5d0ccbe616379b0a7efdadbd1858e4a8cf098e 100644 (file)
@@ -229,7 +229,8 @@ sub setupfiles () {
                # Avoid omega interpreting anything in the misctemplate
                # as an omegascript command.
                my $misctemplate=IkiWiki::misctemplate(gettext("search"), "\0",
-                       searching => 1);
+                       searchform => "", # avoid showing the small search form
+               );
                eval q{use HTML::Entities};
                error $@ if $@;
                $misctemplate=encode_entities($misctemplate, '\$');