]> sipb.mit.edu Git - ikiwiki.git/commitdiff
make setargv take an array
authorJoey Hess <joey@kodama.kitenet.net>
Wed, 19 Mar 2008 19:49:00 +0000 (15:49 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Wed, 19 Mar 2008 19:49:00 +0000 (15:49 -0400)
for consistentcy with getargv, which returns one

IkiWiki/Plugin/external.pm
doc/plugins/write/external.mdwn

index a30ef3f61889eb9195e96c7588dc68e19399afb9..43d2cbb28451701d0661f05114d28eec1ca37613 100644 (file)
@@ -162,8 +162,9 @@ sub getargv ($) { #{{{
 
 sub setargv ($@) { #{{{
        my $plugin=shift;
+       my $array=shift;
 
-       @ARGV=@_;
+       @ARGV=@$array;
 } #}}}
 
 sub inject ($@) { #{{{
index 058b9e58a2da357c925dc1507e3d904120a61ba5..4492cd0dabe439bb11c3c2a4b9d6815111fb08e9 100644 (file)
@@ -54,7 +54,7 @@ stored state, call `getstate("page", "id", "key")`, and to store state,
 call `setstate("page", "id", "key", "value")`.
 
 To access ikiwiki's ARGV array, call `getargv()`. To change its ARGV, call
-`setargv(value)`.
+`setargv(array)`.
 
 ## Notes on function parameters