Permalink
Browse files

Support two-argument form of getPage

  • Loading branch information...
1 parent dcddb88 commit 81f5083c68b6651a278f2937c55b574d495eda36 Philip Garrett committed Mar 25, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/Atlassian/Confluence.pm
@@ -395,8 +395,9 @@ sub getServerInfo {
sub getPage {
my ($self, $pageId) = @_;
carp "getPage" if $CONF_TRACE;
- my $res = _do_rpc_request($self, "getPage", string($pageId));
- return $res;
+ my @service_args = splice(@_,0,2);
+ return $self->_do_rpc_request("getPage",
+ map { Atlassian::Confluence::string($_) } @service_args);
}
sub getPageHistory {
my ($self, $pageId) = @_;

0 comments on commit 81f5083

Please sign in to comment.