diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-03-19 15:18:38 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-03-19 15:18:38 -0400 |
commit | d7f1292c3134fd9464ca4005f48b9274be861c10 (patch) | |
tree | 5b19f18838c6d5de1883c4a71d08415683f7150e | |
parent | d8c4ea783be95b0ec0f4c69a4a1f230ac0e43601 (diff) | |
download | ikiwiki-d7f1292c3134fd9464ca4005f48b9274be861c10.tar ikiwiki-d7f1292c3134fd9464ca4005f48b9274be861c10.tar.gz |
fix setvar
It was incorrectly setting the value to the number of items in @_, ie,
always 1.
-rw-r--r-- | IkiWiki/Plugin/external.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/external.pm b/IkiWiki/Plugin/external.pm index a90c5d8e2..a30ef3f61 100644 --- 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; } #}}} |