fix setvar

It was incorrectly setting the value to the number of items in @_, ie,
always 1.
master
Joey Hess 2008-03-19 15:18:38 -04:00
parent d8c4ea783b
commit d7f1292c31
1 changed files with 2 additions and 1 deletions

View File

@ -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;
} #}}}