projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d66fc7a
)
disable warnings when redefining functions
author
Joey Hess
<joey@kodama.kitenet.net>
Tue, 21 Oct 2008 21:03:08 +0000
(17:03 -0400)
committer
Joey Hess
<joey@kodama.kitenet.net>
Tue, 21 Oct 2008 21:03:08 +0000
(17:03 -0400)
IkiWiki/Plugin/external.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/external.pm
b/IkiWiki/Plugin/external.pm
index ba6c7d8b9f064577bcfb2c9e2716c7653da1fc72..287e118f143b3474d5b3fb6d96b9df14504ffb23 100644
(file)
--- a/
IkiWiki/Plugin/external.pm
+++ b/
IkiWiki/Plugin/external.pm
@@
-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;
} #}}}