]> sipb.mit.edu Git - ikiwiki.git/commitdiff
fix setvar
authorJoey Hess <joey@kodama.kitenet.net>
Wed, 19 Mar 2008 19:18:38 +0000 (15:18 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Wed, 19 Mar 2008 19:18:38 +0000 (15:18 -0400)
It was incorrectly setting the value to the number of items in @_, ie,
always 1.

IkiWiki/Plugin/external.pm

index a90c5d8e2faf1247946a12350320b13ea0b9c4f2..a30ef3f61889eb9195e96c7588dc68e19399afb9 100644 (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;
 } #}}}