]> scripts.mit.edu Git - www/ikiwiki.git/blobdiff - IkiWiki/Render.pm
Renamed postscan hook to indexhtml, to reflect its changed position.
[www/ikiwiki.git] / IkiWiki / Render.pm
index a824ba5396e489714d069148878d5c3ea95a9868..30e3d4199cd56b26cbf69529ca8d641d1d6ac7b2 100644 (file)
@@ -62,7 +62,7 @@ sub genpage ($$) {
        my $page=shift;
        my $content=shift;
        
-       run_hooks(postscan => sub {
+       run_hooks(indexhtml => sub {
                shift->(page => $page, content => $content);
        });
 
@@ -321,6 +321,7 @@ sub find_src_files () {
                my ($f) = $file =~ /$config{wiki_file_regexp}/; # untaint
                if (! defined $f) {
                        warn(sprintf(gettext("skipping bad filename %s"), $file)."\n");
+                       return;
                }
        
                if ($underlay) {