]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
disable warnings when redefining functions
authorJoey Hess <joey@kodama.kitenet.net>
Tue, 21 Oct 2008 21:03:08 +0000 (17:03 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 21 Oct 2008 21:03:08 +0000 (17:03 -0400)
IkiWiki/Plugin/external.pm

index ba6c7d8b9f064577bcfb2c9e2716c7653da1fc72..287e118f143b3474d5b3fb6d96b9df14504ffb23 100644 (file)
@@ -202,7 +202,9 @@ sub inject ($@) { #{{{
        my $sub = sub {
                IkiWiki::Plugin::external::rpc_call($plugin, $params{call}, @_)
        };
+       no warnings;
        eval qq{*$params{name}=\$sub};
+       use warnings;
        memoize($params{name}) if $params{memoize};
        return 1;
 } #}}}