fix setvar
It was incorrectly setting the value to the number of items in @_, ie, always 1.master
parent
d8c4ea783b
commit
d7f1292c31
|
@ -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;
|
||||
} #}}}
|
||||
|
|
Loading…
Reference in New Issue