From d7f1292c3134fd9464ca4005f48b9274be861c10 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 19 Mar 2008 15:18:38 -0400 Subject: fix setvar It was incorrectly setting the value to the number of items in @_, ie, always 1. --- IkiWiki/Plugin/external.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'IkiWiki/Plugin') 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; } #}}} -- cgit v1.2.3