]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/search.pm
* Add getopt hook type, this allows plugins to add new command-line options.
[ikiwiki.git] / IkiWiki / Plugin / search.pm
index 8931e3fd4119edf69d859f70b829807c78269ff5..c79d4046954535ce340169cf9169b89c1e75ba6a 100644 (file)
@@ -27,9 +27,10 @@ sub checkconfig () { #{{{
        }
 } #}}}
 
        }
 } #}}}
 
-sub pagetemplate ($$) { #{{{
-       my $page=shift;
-       my $template=shift;
+sub pagetemplate (@) { #{{{
+       my %params=@_;
+       my $page=$params{page};
+       my $template=$params{template};
 
        # Add search box to page header.
        if ($template->query(name => "searchform")) {
 
        # Add search box to page header.
        if ($template->query(name => "searchform")) {