]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Work around perl $_ scoping nonsense that caused breakage when loading external plugins.
authorJoey Hess <joey@kodama.kitenet.net>
Fri, 29 Aug 2008 22:43:48 +0000 (18:43 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Fri, 29 Aug 2008 22:43:48 +0000 (18:43 -0400)
(There's a good chance this bug doesn't affect this version of the code,
since while $config{plugin} is clobbered, it's not used further.)

IkiWiki.pm
debian/changelog

index a4657a311e36c37b22daddc6ee88e4416526ca12..ff82e39617ade57148b251173253af9a4db3d206 100644 (file)
@@ -151,7 +151,9 @@ sub loadplugins () { #{{{
                unshift @INC, possibly_foolish_untaint($config{libdir});
        }
 
-       loadplugin($_) foreach @{$config{plugin}};
+       foreach my $plugin (@{$config{plugin}}) {
+               loadplugin($plugin);
+       }
 
        run_hooks(getopt => sub { shift->() });
        if (grep /^-/, @ARGV) {
index 9b62fcb2921043a99079e648b178f2102505a033..1b892da40be6ba04b2f026203a638400ba3ec7c5 100644 (file)
@@ -24,6 +24,8 @@ ikiwiki (2.53.1) UNRELEASED; urgency=low
   * edittemplate: Don't wipe out edits on preview.
   * map: The fix for #449285 was buggy and broke display of parents in certian
     circumstances.
+  * Work around perl $_ scoping nonsense that caused breakage when loading
+    external plugins.
 
  -- Josh Triplett <josh@freedesktop.org>  Wed, 09 Jul 2008 21:30:33 -0700