]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/search.pm
web commit by http://joey.kitenet.net/: mail bug fixed, final test
[ikiwiki.git] / IkiWiki / Plugin / search.pm
index 5a4dfd491a896047e354b46af7f389ff3b994db5..3cfc301e2e7815c4ff36f181fa38d01f319afb58 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});
 } #}}}
@@ -63,7 +64,8 @@ sub change (@) { #{{{
        debug("updating hyperestraier search index");
        estcmd("gather -cm -bc -cl -sd",
                map {
-                       Encode::encode_utf8($config{destdir}."/".$renderedfiles{pagename($_)})
+                       Encode::encode_utf8($config{destdir}."/".$_)
+                               foreach @{$renderedfiles{pagename($_)}};
                } @_
        );
        estcfg();