]> scripts.mit.edu Git - www/ikiwiki.git/blobdiff - IkiWiki/Plugin/search.pm
web commit by http://mazirian.myopenid.com/
[www/ikiwiki.git] / IkiWiki / Plugin / search.pm
index a57a8404819b07f8449b634e0de32772a8c76ff8..942b9498634042b7c62707746bdaeb7b80a79e1a 100644 (file)
@@ -23,6 +23,7 @@ sub import { #{{{
 
 sub getopt () { #{{{
         eval q{use Getopt::Long};
+       error($@) if $@;
         Getopt::Long::Configure('pass_through');
         GetOptions("estseek=s" => \$config{estseek});
 } #}}}
@@ -73,7 +74,7 @@ sub change (@) { #{{{
 sub cgi ($) { #{{{
        my $cgi=shift;
 
-       if (defined $cgi->param('phrase')) {
+       if (defined $cgi->param('phrase') || defined $cgi->param("navi")) {
                # only works for GET requests
                chdir("$config{wikistatedir}/hyperestraier") || error("chdir: $!");
                exec("./".IkiWiki::basename($config{cgiurl})) || error("estseek.cgi failed");