From: Joey Hess Date: Wed, 19 Mar 2008 19:18:38 +0000 (-0400) Subject: fix setvar X-Git-Tag: 2.41~71 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/d7f1292c3134fd9464ca4005f48b9274be861c10 fix setvar It was incorrectly setting the value to the number of items in @_, ie, always 1. --- 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; } #}}}