aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IkiWiki/Plugin/external.pm2
-rw-r--r--doc/plugins/write/external.mdwn2
2 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/external.pm b/IkiWiki/Plugin/external.pm
index 300dee7ed..a90c5d8e2 100644
--- a/IkiWiki/Plugin/external.pm
+++ b/IkiWiki/Plugin/external.pm
@@ -156,7 +156,7 @@ sub setstate ($$$$;@) { #{{{
sub getargv ($) { #{{{
my $plugin=shift;
- return @ARGV;
+ return \@ARGV;
} #}}}
sub setargv ($@) { #{{{
diff --git a/doc/plugins/write/external.mdwn b/doc/plugins/write/external.mdwn
index 2ee841e61..058b9e58a 100644
--- a/doc/plugins/write/external.mdwn
+++ b/doc/plugins/write/external.mdwn
@@ -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