]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/autoindex.pm
po: po_link_to is safe, and fallbacks to a working value if needed
[git.ikiwiki.info.git] / IkiWiki / Plugin / autoindex.pm
index a79a06314900e42346e0cb4972e778a7b35df930..d1b3edb1f3cb6394d6bda558aed507fee627b4c3 100644 (file)
@@ -97,7 +97,9 @@ sub refresh () { #{{{
                if ($config{rcs}) {
                        IkiWiki::disable_commit_hook();
                }
-               genindex($_) foreach @needed;
+               foreach my $page (@needed) {
+                       genindex($page);
+               }
                if ($config{rcs}) {
                        IkiWiki::rcs_commit_staged(
                                gettext("automatic index generation"),