projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8c4ea7
)
fix setvar
author
Joey Hess
<joey@kodama.kitenet.net>
Wed, 19 Mar 2008 19:18:38 +0000
(15:18 -0400)
committer
Joey Hess
<joey@kodama.kitenet.net>
Wed, 19 Mar 2008 19:18:38 +0000
(15:18 -0400)
It was incorrectly setting the value to the number of items in @_, ie,
always 1.
IkiWiki/Plugin/external.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/external.pm
b/IkiWiki/Plugin/external.pm
index a90c5d8e2faf1247946a12350320b13ea0b9c4f2..a30ef3f61889eb9195e96c7588dc68e19399afb9 100644
(file)
--- a/
IkiWiki/Plugin/external.pm
+++ b/
IkiWiki/Plugin/external.pm
@@
-128,9
+128,10
@@
sub setvar ($$$;@) { #{{{
my $plugin=shift;
my $varname="IkiWiki::".shift;
my $key=shift;
+ my $value=shift;
no strict 'refs';
- my $ret=$varname->{$key}=
@_
;
+ my $ret=$varname->{$key}=
$value
;
use strict 'refs';
return $ret;
} #}}}