aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-03-19 15:18:38 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-03-19 15:18:38 -0400
commitd7f1292c3134fd9464ca4005f48b9274be861c10 (patch)
tree5b19f18838c6d5de1883c4a71d08415683f7150e /IkiWiki
parentd8c4ea783be95b0ec0f4c69a4a1f230ac0e43601 (diff)
downloadikiwiki-d7f1292c3134fd9464ca4005f48b9274be861c10.tar
ikiwiki-d7f1292c3134fd9464ca4005f48b9274be861c10.tar.gz
fix setvar
It was incorrectly setting the value to the number of items in @_, ie, always 1.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/external.pm3
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;
} #}}}