getargv needs to return a list reference
xml rpc only allows functions to return a single value, no lists. So getargv needs to return a list reference, which means that the caller will see an xml rpc array.master
parent
556ec23914
commit
f003e97d10
|
@ -156,7 +156,7 @@ sub setstate ($$$$;@) { #{{{
|
|||
sub getargv ($) { #{{{
|
||||
my $plugin=shift;
|
||||
|
||||
return @ARGV;
|
||||
return \@ARGV;
|
||||
} #}}}
|
||||
|
||||
sub setargv ($@) { #{{{
|
||||
|
|
|
@ -53,7 +53,7 @@ it, external plugins can use the `getstate` and `setstate` RPCs. To access
|
|||
stored state, call `getstate("page", "id", "key")`, and to store state,
|
||||
call `setstate("page", "id", "key", "value")`.
|
||||
|
||||
To access ikiwiki's ARGV, call `getargv()`. To change its ARGV, call
|
||||
To access ikiwiki's ARGV array, call `getargv()`. To change its ARGV, call
|
||||
`setargv(value)`.
|
||||
|
||||
## Notes on function parameters
|
||||
|
|
Loading…
Reference in New Issue